Ejemplo n.º 1
0
        static Graph makeGraph()
        {
            Graph g = new Graph(10);

            g.AddEdgeDirected(0, 1);
            g.AddEdgeDirected(0, 3);
            g.AddEdgeDirected(1, 2);
            g.AddEdgeDirected(1, 5);
            g.AddEdgeDirected(2, 8);
            g.AddEdgeDirected(3, 2);
            g.AddEdgeDirected(3, 4);
            g.AddEdgeDirected(4, 9);
            g.AddEdgeDirected(5, 8);
            g.AddEdgeDirected(6, 7);
            g.AddEdgeDirected(8, 6);
            g.AddEdgeDirected(9, 8);
            return(g);
        }