public Netron.Shape ProvideShape(QuickGraph.Concepts.IVertex v) { Shape shape = (Shape)this.constructor.Invoke(null); OnFormatShape(shape, v); return(shape); }
public System.Collections.IEnumerable InEdges(QuickGraph.Concepts.IVertex v) { foreach (Edge e in this.vertexInEdges[v]) { yield return(e); } yield break; }
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; } }
public QuickGraph.Concepts.IEdge ChooseEdge(QuickGraph.Concepts.IVertex state, int i) { return(this.successors[state][i]); }
public int NumInEdges(QuickGraph.Concepts.IVertex v) { return(this.vertexInEdges[v].Count); }