Class EdgeList


  • public class EdgeList
    extends Object
    A EdgeList is a list of Edges. It supports locating edges that are pointwise equals to a target edge.
    Version:
    1.7
    • Constructor Detail

      • EdgeList

        public EdgeList()
    • Method Detail

      • add

        public void add​(Edge e)
        Insert an edge unless it is already in the list
        Parameters:
        e - Edge
      • addAll

        public void addAll​(Collection edgeColl)
      • getEdges

        public List getEdges()
      • findEqualEdge

        public Edge findEqualEdge​(Edge e)
        If there is an edge equal to e already in the list, return it. Otherwise return null.
        Parameters:
        e - Edge
        Returns:
        equal edge, if there is one already in the list null otherwise
      • get

        public Edge get​(int i)
      • findEdgeIndex

        public int findEdgeIndex​(Edge e)
        If the edge e is already in the list, return its index.
        Parameters:
        e - Edge
        Returns:
        index, if e is already in the list -1 otherwise