/// <summary> /// Removes all of the edges to a given vertex /// </summary> /// <param name="vertex">The vertex being removed</param> protected virtual void RemoveAllEdgesToVertex(object vertex) { WorkList wl = new WorkList(Successors(vertex)); while (!wl.IsEmpty) { RemoveEdge(wl.NextItem() as Edge); } }
/// <summary> /// See base class /// </summary> /// <param name="vertex"></param> protected override void RemoveAllEdgesToVertex(object vertex) { WorkList wl = new WorkList(Predecessors(vertex)); while (!wl.IsEmpty) { RemoveEdge(wl.NextItem() as Edge); } base.RemoveAllEdgesToVertex(vertex); }