New eulerian algorithm#743
Merged
Merged
Conversation
eyal0
force-pushed
the
new_eulerian_algorithm
branch
from
December 18, 2025 21:18
76e5160 to
92eac85
Compare
Collaborator
eyal0
force-pushed
the
new_eulerian_algorithm
branch
3 times, most recently
from
December 22, 2025 05:58
0ffad30 to
92de55a
Compare
First we carefully convert each bidirectional path to a directional one, using a heuristic that minimizing the number of Eulerian paths and also the changes in angle. For each bidirectional edge, we try to keep a balance of input and output edges. If there are multiple ways to keep the balance then we find the solution that creates the least change in direction. Eventually, all bidirectional paths are turned to directional ones. Then we use the regular Hierholzer's algorithm on those directional paths.
eyal0
force-pushed
the
new_eulerian_algorithm
branch
from
December 22, 2025 16:31
92de55a to
6633265
Compare
eyal0
force-pushed
the
new_eulerian_algorithm
branch
from
December 24, 2025 13:10
510571e to
d824e19
Compare
This was referenced Dec 24, 2025
timaydin
pushed a commit
to timaydin/pcb2gcode
that referenced
this pull request
Jan 27, 2026
New eulerian algorithm
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.
No description provided.