public Edge(Vertex newParent, Vertex newChild, int newValue) { parent = newParent; child = newChild; value = newValue; }
public void AddVertex(Vertex vertex) { graph.Add(vertex); }
public bool equals(Vertex self, Vertex other) { return(self.value == other.value && self.player == other.player); }