示例#1
0
        /// <summary>
        /// Returns the DirectedEdge on the left-hand side of the given DirectedEdge (which
        /// must be a member of this DirectedEdgeStar).
        /// </summary>
        public DirectedEdge GetNextEdge(DirectedEdge dirEdge)
        {
            int i = GetIndex(dirEdge);

            return((DirectedEdge)outEdges[GetIndex(i + 1)]);
        }
示例#2
0
 /// <summary> Adds a new member to this DirectedEdgeStar.</summary>
 public void Add(DirectedEdge de)
 {
     outEdges.Add(de);
     sorted = false;
 }
示例#3
0
 /// <summary> Drops a member of this DirectedEdgeStar.</summary>
 public void Remove(DirectedEdge de)
 {
     outEdges.Remove(de);
 }