org._3pq.jgrapht.traverse
Class AbstractGraphIterator
java.lang.Object
org._3pq.jgrapht.traverse.AbstractGraphIterator
- GraphIterator, Iterator
public abstract class AbstractGraphIterator
extends java.lang.Object
An empty implementation of a graph iterator to minimize the effort required
to implement graph iterators.
fireConnectedComponentFinished
protected void fireConnectedComponentFinished(ConnectedComponentTraversalEvent e)
Informs all listeners that the traversal of the current connected
component finished.
e
- the connected component finished event.
fireConnectedComponentStarted
protected void fireConnectedComponentStarted(ConnectedComponentTraversalEvent e)
Informs all listeners that a traversal of a new connected component has
started.
e
- the connected component started event.
fireEdgeTraversed
protected void fireEdgeTraversed(EdgeTraversalEvent e)
Informs all listeners that a the specified edge was visited.
e
- the edge traversal event.
fireVertexTraversed
protected void fireVertexTraversed(VertexTraversalEvent e)
Informs all listeners that a the specified vertex was visited.
e
- the vertex traversal event.
isCrossComponentTraversal
public boolean isCrossComponentTraversal()
Test whether this iterator is set to traverse the graph across connected
components.
- isCrossComponentTraversal in interface GraphIterator
true
if traverses across connected components,
otherwise false
.
setCrossComponentTraversal
public void setCrossComponentTraversal(boolean crossComponentTraversal)
Sets the cross component traversal flag - indicates whether to traverse
the graph across connected components.
crossComponentTraversal
- if true
traverses across
connected components.