Documentation of 'org.jgrapht.traverse.AbstractGraphIterator' Java class
AbstractGraphIterator
org.jgrapht.traverse

Class AbstractGraphIterator<V,E>

  • Type Parameters:
    V - the graph vertex type
    E - the graph edge type
    All Implemented Interfaces:
    java.util.Iterator<V>, GraphIterator<V,E>
    Direct Known Subclasses:
    CrossComponentIterator, RandomWalkIterator


    public abstract class AbstractGraphIterator<V,E>
    extends java.lang.Object
    implements GraphIterator<V,E>
    An empty implementation of a graph iterator to minimize the effort required to implement graph iterators.
    Since:
    Jul 19, 2003
    • Constructor Detail

      • AbstractGraphIterator

        public AbstractGraphIterator()
    • Method Detail

      • setCrossComponentTraversal

        public void setCrossComponentTraversal(boolean crossComponentTraversal)
        Sets the cross component traversal flag - indicates whether to traverse the graph across connected components.
        Parameters:
        crossComponentTraversal - if true traverses across connected components.
      • isCrossComponentTraversal

        public boolean isCrossComponentTraversal()
        Test whether this iterator is set to traverse the graph across connected components.
        Specified by:
        isCrossComponentTraversal in interface GraphIterator<V,E>
        Returns:
        true if traverses across connected components, otherwise false.
      • setReuseEvents

        public void setReuseEvents(boolean reuseEvents)
        Description copied from interface: GraphIterator
        Sets a value the reuseEvents flag. If the reuseEvents flag is set to true this class will reuse previously fired events and will not create a new object for each event. This option increases performance but should be used with care, especially in multithreaded environment.
        Specified by:
        setReuseEvents in interface GraphIterator<V,E>
        Parameters:
        reuseEvents - whether to reuse previously fired event objects instead of creating a new event object for each event.
        See Also:
        GraphIterator.setReuseEvents(boolean)
      • isReuseEvents

        public boolean isReuseEvents()
        Description copied from interface: GraphIterator
        Tests whether the reuseEvents flag is set. If the flag is set to true this class will reuse previously fired events and will not create a new object for each event. This option increases performance but should be used with care, especially in multithreaded environment.
        Specified by:
        isReuseEvents in interface GraphIterator<V,E>
        Returns:
        the value of the reuseEvents flag.
        See Also:
        GraphIterator.isReuseEvents()
      • remove

        public void remove()
        Unsupported.
        Specified by:
        remove in interface java.util.Iterator<V>
        Specified by:
        remove in interface GraphIterator<V,E>

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.