public Netron.Connection ProvideConnection(QuickGraph.Concepts.IEdge e) { Connection conn = (Connection)this.constructor.Invoke(null); OnFormatConnection(conn, e); return(conn); }
public void SetChooseEdge(QuickGraph.Concepts.IVertex v, int k, QuickGraph.Concepts.IEdge e) { if (k == 0) { this.successors.Add(v, new EdgeCollection()); } EdgeCollection col = this.successors[v]; if (col.Count <= k) { col.Add(e); } else { col[k] = e; } }