Beispiel #1
0
        public DirectedGraph.EdgeEnumerator GetEdgeEnumerator(uint vertex)
        {
            DirectedGraph.EdgeEnumerator edgeEnumerator = new DirectedGraph.EdgeEnumerator(this);
            int num = (int)vertex;

            edgeEnumerator.MoveTo((uint)num);
            return(edgeEnumerator);
        }
Beispiel #2
0
        public int RemoveEdges(uint vertex)
        {
            int num = 0;

            DirectedGraph.EdgeEnumerator edgeEnumerator = this.GetEdgeEnumerator(vertex);
            while (edgeEnumerator.MoveNext())
            {
                num += this.RemoveEdge(vertex, edgeEnumerator.Neighbour);
            }
            return(num);
        }
 public EdgeEnumerator(DirectedMetaGraph graph, DirectedGraph.EdgeEnumerator enumerator)
 {
     this._graph      = graph;
     this._enumerator = enumerator;
 }