By: ThorstenSeitz
Values
blackSource Codeshared black black

black = vertex has been visited and we are not done with all of its out-edges

graySource Codeshared gray gray

gray = vertex has been visited but we are not done with all of its out-edges yet

whiteSource Codeshared white white

white = vertex has not been visited yet

Interfaces
EdgeIteratorSource Codeshared EdgeIterator<V,E,G>
given V satisfies Object
given E satisfies Edge<V,E>
given G satisfies IncidenceGraph<V,E>
GraphIteratorSource Codeshared GraphIterator<V,G,Visitor>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
given Visitor satisfies TraversalVisitor<V>
PropagatorBasedIteratorSource Codeshared PropagatorBasedIterator<V,G,P,Adjacency,Visitor>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
given P satisfies GraphPropagator<V,Adjacency>
given Visitor satisfies TraversalVisitor<V>

Graph iterator using a GraphPropagator to abstract from propagating to neighbors via adjacent vertices or incident edges.

VertexIteratorSource Codeshared VertexIterator<V,G>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
Classes
BfsIteratorSource Codeshared abstract BfsIterator<V,G,Adjacency,P,Visitor>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
given P satisfies GraphPropagator<V,Adjacency>
given Visitor satisfies TraversalVisitor<V>

Generic breadth first search traversal.

ColorMapSource Codeshared ColorMap<V>
given V satisfies Object

A ColorMap stores the visit state of vertices. All vertices start out colored white. Implementation note: white vertices are not stored explicitly because white is the default.

DfsIteratorSource Codeshared abstract DfsIterator<V,G,Adjacency,P,Visitor>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
given P satisfies GraphPropagator<V,Adjacency>
given Visitor satisfies TraversalVisitor<V>

Generic depth first search traversal.

StandardGraphIteratorSource Codeshared abstract StandardGraphIterator<V,G,Adjacency,P,Visitor>
given V satisfies Object
given G satisfies AdjacencyGraph<V>
given P satisfies GraphPropagator<V,Adjacency>
given Visitor satisfies TraversalVisitor<V>

Generic traversal by using white/gray/black vertex colors and a collection of vertices waiting to be visited. Base for BFS (using a queue) and DFS (using a stack).

VisitColorSource Codeshared abstract VisitColor

Vertex visit state is encoded by color.

blackSource Codeshared black

black = vertex has been visited and we are not done with all of its out-edges

graySource Codeshared gray

gray = vertex has been visited but we are not done with all of its out-edges yet

whiteSource Codeshared white

white = vertex has not been visited yet