Euler-cycle / path that doesn't cross itself

FWIW, the source code for the networkx method I implemented is open source. Might help if you intend on writing your own implementation:

https://networkx.org/documentation/stable/_modules/networkx/algorithms/euler.html#eulerian_circuit

1 Like