Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Test if a strongly connected mixed graph is Eulerian or unicursal
Test if a mixed graph is Eulerian:
In[1]:= | ![]() |
Out[1]= | ![]() |
Although this graph is even, the graph violates the balanced set condition and is therefore not Eulerian:
In[2]:= | ![]() |
Out[2]= | ![]() |
In[3]:= | ![]() |
Out[3]= | ![]() |
A graph that is beyond a limit of around 14 nodes can take an unreasonable amount of time because the number n of subsets grows exponentially according to O(2n):
In[4]:= | ![]() |
Out[4]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License