/// <summary> /// /// </summary> /// <param name="g"></param> /// <param name="description"></param> public static void UnitTest(Graph g, string description) { Console.WriteLine(description); Console.WriteLine("-------------------------------------"); Console.Write(g); var euler = new EulerianCycle(g); Console.Write("Eulerian cycle: "); if (euler.HasEulerianCycle()) { foreach (int v in euler.Cycle()) { Console.Write(v + " "); } Console.WriteLine(); } else { Console.WriteLine("none"); } Console.WriteLine(); }