示例#1
0
 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();
 }
示例#2
0
        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();
        }