public GraphAdjList(Node <T>[] nodes) { adjList = new VexNode <T> [nodes.Length]; visited = new bool[nodes.Length]; for (int i = 0; i < nodes.Length; i++) { adjList[i] = new VexNode <T>(nodes[i]); } }
public void SetNode(int index, Node <T> v) { adjList[index] = new VexNode <T>(v); }