예제 #1
0
        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));
        }
예제 #2
0
 public DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA> AddEdge(DirectedGraphEdge <TID, TNODEDATA, TEDGEDATA> edge)
 {
     this._edges.Add(edge);
     return(edge);
 }