Example #1
0
        /// <summary>
        /// Removes DirectedEdge from its from-Node and from this PlanarGraph. Note:
        /// This method does not remove the Nodes associated with the DirectedEdge,
        /// even if the removal of the DirectedEdge reduces the degree of a Node to
        /// zero.
        /// </summary>
        /// <param name="de"></param>
        public void Remove(DirectedEdge de)
        {
            DirectedEdge sym = de.Sym;

            if (sym != null)
            {
                sym.Sym = null;
            }
            de.FromNode.OutEdges.Remove(de);
            de.Remove();
            dirEdges.Remove(de);
        }
Example #2
0
 /// <summary> 
 /// Removes DirectedEdge from its from-Node and from this PlanarGraph. Note:
 /// This method does not remove the Nodes associated with the DirectedEdge,
 /// even if the removal of the DirectedEdge reduces the degree of a Node to
 /// zero.
 /// </summary>
 /// <param name="de"></param>
 public void Remove(DirectedEdge de)
 {
     DirectedEdge sym = de.Sym;
     if (sym != null) 
         sym.Sym = null;
     de.FromNode.OutEdges.Remove(de);
     de.Remove();
     dirEdges.Remove(de);
 }