Esempio n. 1
0
 public DepthFirstSearch(AdjacencyListGraph <T> graph, int sourceVertexIndex)
 {
     _graph             = graph;
     _sourceVertexIndex = sourceVertexIndex;
     _visited           = new bool[graph.VertexesCount];
     _edgesTo           = new int[graph.EdgesCount];
     Search(sourceVertexIndex);
 }