public void AddEdge(DirectedEdge e)
 {
     AddEdge(e.From, e.To, e.Weight);
 }
Exemple #2
0
 /// <summary>
 /// add a directed edge
 /// </summary>
 /// <param name="e"></param>
 public void AddEdge(DirectedEdge edge)
 {
     adj[edge.From].Add(edge);
     (this.e)++;
 }