Class DirectedVertexImpl.EdgeSegmentIterator<ES extends EdgeSegment>

  • All Implemented Interfaces:
    Iterator<ES>
    Enclosing class:
    DirectedVertexImpl<E extends EdgeSegment>

    public class DirectedVertexImpl.EdgeSegmentIterator<ES extends EdgeSegment>
    extends Object
    implements Iterator<ES>
    Iterator for a run over the incoming or outgoing edge segments of this vertex (non-modifiable)
    Author:
    markr
    • Method Detail

      • hasNext

        public boolean hasNext()
        Check if next is available by querying edges for available segment based on their vertex location matching this vertex
        Specified by:
        hasNext in interface Iterator<ES extends EdgeSegment>
        Returns:
        true when present, false otherwise
      • next

        public ES next()
        Get next edge segment
        Specified by:
        next in interface Iterator<ES extends EdgeSegment>
        Returns:
        edge segment found