You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Eulerian cycles/trails for undirected graphs (#232)
* add `eulerian` to compute Eulerian cycles/tours for undirected graphs
* simplify API: don't allow end vertex as input
* actually include new tests in "test/runtests.jl"
* nit
* Doc nit
* fix `@test_throws` use on <v1.8
* fix^N
* code review
@test_throwsErrorException("starting vertex has even degree but there are other vertices with odd degree: a eulerian cycle does not exist") eulerian(g1, 2)
11
+
12
+
# a cycle with a node (vertex 2) with multiple neighbors
@test_throwsErrorException("starting vertex has even degree but there are other vertices with odd degree: a eulerian cycle does not exist") eulerian(g3, 1)
20
+
21
+
# start/end point not in graph
22
+
@test_throwsErrorException("starting vertex is not in the graph") eulerian(g3, 5)
0 commit comments