public static void ShowTopological(this DiGraph dg) { Topological top = new Topological(dg); if (top.isDAG()) return; Console.Write("Topological: "); foreach (int v in top.Order) Console.Write("{0} ",v); Console.WriteLine(); }
public static void ShowTopological(this DiGraph dg) { Topological top = new Topological(dg); if (top.isDAG()) { return; } Console.Write("Topological: "); foreach (int v in top.Order) { Console.Write("{0} ", v); } Console.WriteLine(); }