public DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA> AddEdge(TID id, GraphNode <TID, TNODEDATA> from, GraphNode <TID, TNODEDATA> to, TEDGEDATA data) { var edge = new DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA>(id, from, to, data); return(this.AddEdge(edge)); }
public DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA> AddEdge(DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA> edge) { this._edges.Add(edge); return(edge); }