8000 graph: preserve node count when transposing by dajiaohuang · Pull Request #1816 · dominikh/go-tools · GitHub
[go: up one dir, main page]

Skip to content

graph: preserve node count when transposing - #1816

Closed
dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/1816-graph-transpose-node-count
Closed

dajiaohuang wants to merge 1 commit into
dominikh:masterfrom
dajiaohuang:fix/1816-graph-transpose-node-count

Conversation

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

Return the underlying graph's node count from the transpose view. Counting the predecessor-map entries omitted nodes with no incoming edges, so transpose.NumNodes() could be smaller than Nodes() and the source graph's count.

Validation: static review and git diff --check. No tests were added or run.

@dajiaohuang
Copy link
Copy Markdown
Author

Closing this duplicate after comparing the current patches. The same defect and fix are already covered by #1775. Keeping the existing contribution avoids competing review threads; the contributor branches remain preserved.

@dajiaohuang dajiaohuang closed this Oct 2, 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