public class DepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>> extends AbstractDepthFirstSearch<GraphType,EdgeType,VertexType>
Graph,
AbstractDepthFirstSearchBLACK, DEBUG, GRAY, WHITEBACK_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, visitMepublic DepthFirstSearch(GraphType graph)
graph - the graph to perform a depth first search ofprotected java.util.Iterator<EdgeType> outgoingEdgeIterator(GraphType graph, VertexType vertex)
AbstractDepthFirstSearchoutgoingEdgeIterator in class AbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>protected VertexType getTarget(EdgeType edge)
AbstractDepthFirstSearchgetTarget in class AbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>protected VertexType getSource(EdgeType edge)
AbstractDepthFirstSearchgetSource 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.