public WeightedCyclicDetection(EdgeWeightedGraph graph)
 {
     this.graph = graph;
     edgeTo = Enumerable.Repeat(-1, graph.V()).ToArray<int>();
     visited = new bool[graph.V ()];
     dfsCyclic ();
 }
Example #2
0
 public MST(EdgeWeightedGraph g)
 {
     this.graph = g;
 }