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; }
public void AddOneWayEdge(Edge Edge) { SetOfEdges.Add(Edge); SetOfEdges[SetOfEdges.Count - 1].Index = SetOfEdges.Count - 1; }