public VertexList <T> Clone() { VertexList <T> newList = new VertexList <T>(); for (int i = 0; i < Items.Count; i++) { newList.Add(this[i]); } return(newList); }
public Graph(VertexList <T> vertexSet) { if (vertexSet == null) { this.vertexSet = new VertexList <T>(); } else { this.vertexSet = vertexSet; } }
public Vertex(T value, VertexList <T> neighbours) { this.Value = value; this.Neighbours = neighbours; }