Preserve hard constraints in greedy final routing - #140
Draft
ShiboSoftwareDev wants to merge 4 commits into
Draft
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Benchmark This PRRun benchmarks by commenting on this PR: Everything after Examples:
Any PR whose title contains |
ShiboSoftwareDev
force-pushed
the
agent/fix-greedy-final-route-hard-constraints
branch
from
August 2, 2026 10:40
2e98049 to
9a95b81
Compare
ShiboSoftwareDev
force-pushed
the
agent/repro-greedy-final-route-hard-constraints
branch
from
August 2, 2026 10:40
ff2434e to
4a2854f
Compare
ShiboSoftwareDev
force-pushed
the
agent/fix-greedy-final-route-hard-constraints
branch
from
August 2, 2026 10:41
9a95b81 to
e197fe2
Compare
ShiboSoftwareDev
force-pushed
the
agent/fix-greedy-final-route-hard-constraints
branch
from
August 2, 2026 10:48
ad9190a to
9d83c0e
Compare
ShiboSoftwareDev
force-pushed
the
agent/fix-greedy-final-route-hard-constraints
branch
from
August 2, 2026 10:51
9d83c0e to
2ac3586
Compare
This was referenced Aug 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
Stacked on reproduction PR #139.
Problem
Normal path search uses
Infinityto reject hard-invalid moves such as crossing another net in a single-layer region.Two shortcuts combined:
Fix
The fix has two matching steps:
The shared final-hop check also replaces the duplicate implementation that previously existed only in the distance-aware subclass. This does not add a new stage, topology type, or downstream geometry patch.
Reproduction and visualization
The unchanged #139 fixture has a vertical net already routed through one single-layer region. Greedy completion tries to add a horizontal net whose only path crosses it.
The SVG is tiny-hypergraph’s native solver visualization:
Before the fix, both crossing lines are solid and the center region reports one same-layer crossing. After the fix, only the legal vertical route is solid; the horizontal request stays dashed and the center reports zero crossings.
Validation