public class DepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>> extends AbstractDepthFirstSearch<GraphType,EdgeType,VertexType>
Graph
,
AbstractDepthFirstSearch
BLACK, DEBUG, GRAY, WHITE
BACK_EDGE, CROSS_EDGE, FORWARD_EDGE, TREE_EDGE, UNKNOWN_EDGE
Constructor and Description |
---|
DepthFirstSearch(GraphType graph)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected VertexType |
getSource(EdgeType edge)
Get "logical" source of edge.
|
protected VertexType |
getTarget(EdgeType edge)
Get "logical" target of edge.
|
protected java.util.Iterator<EdgeType> |
outgoingEdgeIterator(GraphType graph,
VertexType vertex)
Get Iterator over "logical" outgoing edges.
|
containsCycle, getColor, getDFSEdgeType, getDiscoveryTime, getFinishTime, getFinishTimeList, getNextSearchTreeRoot, search, setSearchTreeCallback, setVertexChooser, topologicalSortIterator, unvisitedVertices, visitMe
public DepthFirstSearch(GraphType graph)
graph
- the graph to perform a depth first search ofprotected java.util.Iterator<EdgeType> outgoingEdgeIterator(GraphType graph, VertexType vertex)
AbstractDepthFirstSearch
outgoingEdgeIterator
in class AbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
protected VertexType getTarget(EdgeType edge)
AbstractDepthFirstSearch
getTarget
in class AbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
protected VertexType getSource(EdgeType edge)
AbstractDepthFirstSearch
getSource
in class AbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.