Esempio n. 1
0
 public void AddEdge(GraphVertex connectedVertex)
 {
     ConnectedEdges.Add(new GraphEdge(this, connectedVertex));
     connectedVertex.ConnectedEdges.Add(new GraphEdge(connectedVertex, this));
 }
Esempio n. 2
0
 public void AddEdge(GraphVertex firstVertex, GraphVertex secondVertex)
 {
     firstVertex.ConnectedEdges.Add(new GraphEdge(firstVertex, secondVertex));
     secondVertex.ConnectedEdges.Add(new GraphEdge(secondVertex, firstVertex));
 }
Esempio n. 3
0
 public GraphEdge(GraphVertex firstVertex, GraphVertex secondVertex)
 {
     FirstVertex  = firstVertex;
     SecondVertex = secondVertex;
 }