コード例 #1
0
 public void AddTwoWayEdge(Edge Edge)
 {
     SetOfEdges.Add(Edge);
     SetOfEdges[SetOfEdges.Count - 1].Index = SetOfEdges.Count - 1;
     SetOfEdges.Add(new Edge(Edge.Weight, Edge[1], Edge[0]));
     SetOfEdges[SetOfEdges.Count - 1].Index = SetOfEdges.Count - 1;
 }
コード例 #2
0
 public void AddOneWayEdge(Edge Edge)
 {
     SetOfEdges.Add(Edge);
     SetOfEdges[SetOfEdges.Count - 1].Index = SetOfEdges.Count - 1;
 }