8000 Count isolated nodes in transposed graphs by dajiaohuang · Pull Request #1775 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

Count isolated nodes in transposed graphs - #1775

Closed
dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/graph-transpose-node-count
Closed

dajiaohuang wants to merge 3 commits into
dominikh:masterfrom
dajiaohuang:fix/graph-transpose-node-count

Conversation

@dajiaohuang
@dajiaohuang dajiaohuang commented Oct 1, 2026 •
Copy link
Copy Markdown

Fix Transpose.NumNodes to preserve the underlying graph's complete node count, including nodes with no incoming edges. Add regression coverage for direct, compacted, and reverse postorder traversal. Validation: go test ./internal/xtools-internal/graph; git diff --check.

Scope review and current validation

Removed the unrelated generic-instantiation change and its buildir fixture from this PR through a follow-up commit. That fix remains separately tracked in #1764; this PR now contains only its stated change and relevant tests.

go test ./internal/xtools-internal/graph passed all 26 tests.
git diff --check passed. Earlier validation above is historical; the checks in this section describe the narrowed head. No live-service or all-CI-passing claim.

@dajiaohuang dajiaohuang closed this Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0