added an assertion to ensure the graph is eulerian