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