Skip to content

Fix cycle detection in fill_uncovered_nodes second pass#4828

Merged
glennhickey merged 1 commit intomasterfrom
altpaths
Feb 13, 2026
Merged

Fix cycle detection in fill_uncovered_nodes second pass#4828
glennhickey merged 1 commit intomasterfrom
altpaths

Conversation

@glennhickey
Copy link
Contributor

Setting high values for vg paths --min-augref-len could trigger a bug that would create a cycle in the augmented coordinates, which would then be caught during a validations and abort. This PR should fix this case.

The second pass that covers nodes outside snarls had no cycle check,
so paths that visit a node twice could produce cyclic intervals. With
high --min-augref-len values, more nodes are left for this pass, making
cycles more likely. Fix by tracking nodes per interval and breaking at
duplicates, starting a new interval at the repeated node (matching the
get_uncovered_intervals logic in the first pass).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@glennhickey glennhickey merged commit 3693ff8 into master Feb 13, 2026
2 checks passed
@faithokamoto faithokamoto deleted the altpaths branch February 14, 2026 05:57
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.

2 participants