コード例 #1
0
 public GraphV3Path(SparseGraphV3 graphV3, int start)
 {
     _graph      = graphV3;
     _isVisisted = Enumerable.Repeat(false, _graph.V()).ToArray();
     _from       = Enumerable.Repeat(-1, _graph.V()).ToArray();
     _start      = start;
 }
コード例 #2
0
 public TraverseGraphBFS(SparseGraphV3 graph)
 {
     _graph     = graph;
     _isVisited = Enumerable.Repeat(false, _graph.V()).ToArray();
     _from      = Enumerable.Repeat(-1, _graph.V()).ToArray();
     _steps     = Enumerable.Repeat(0, _graph.V()).ToArray();
     _gQueue    = new Queue();
 }