예제 #1
0
 public void AddEdge(GraphVertex connectedVertex)
 {
     ConnectedEdges.Add(new GraphEdge(this, connectedVertex));
     connectedVertex.ConnectedEdges.Add(new GraphEdge(connectedVertex, this));
 }
예제 #2
0
파일: Graph.cs 프로젝트: DragSver/Semester
 public void AddEdge(GraphVertex firstVertex, GraphVertex secondVertex)
 {
     firstVertex.ConnectedEdges.Add(new GraphEdge(firstVertex, secondVertex));
     secondVertex.ConnectedEdges.Add(new GraphEdge(secondVertex, firstVertex));
 }
예제 #3
0
 public GraphEdge(GraphVertex firstVertex, GraphVertex secondVertex)
 {
     FirstVertex  = firstVertex;
     SecondVertex = secondVertex;
 }