Package edu.umd.cs.findbugs.graph
Class ReverseDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractDepthFirstSearch<GraphType,EdgeType,VertexType>
edu.umd.cs.findbugs.graph.ReverseDepthFirstSearch<GraphType,EdgeType,VertexType>
- All Implemented Interfaces:
DFSEdgeTypes
- Direct Known Subclasses:
ReverseDepthFirstSearch
public class ReverseDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>,EdgeType extends GraphEdge<EdgeType,VertexType>,VertexType extends GraphVertex<VertexType>>
extends AbstractDepthFirstSearch<GraphType,EdgeType,VertexType>
Perform a reverse depth first search of a graph. (I.e., depth first search of
reversed graph.)
- Author:
- David Hovemeyer
- See Also:
-
Field Summary
Fields inherited from class edu.umd.cs.findbugs.graph.AbstractDepthFirstSearch
BLACK, DEBUG, GRAY, WHITEFields inherited from interface edu.umd.cs.findbugs.graph.DFSEdgeTypes
BACK_EDGE, CROSS_EDGE, FORWARD_EDGE, TREE_EDGE, UNKNOWN_EDGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected VertexTypeGet "logical" source of edge.protected VertexTypeGet "logical" target of edge.outgoingEdgeIterator(GraphType graph, VertexType vertex) Get Iterator over "logical" outgoing edges.Methods inherited from class edu.umd.cs.findbugs.graph.AbstractDepthFirstSearch
containsCycle, getColor, getDFSEdgeType, getDiscoveryTime, getFinishTime, getFinishTimeList, getNextSearchTreeRoot, search, setSearchTreeCallback, setVertexChooser, topologicalSortIterator, unvisitedVertices, visitMe
-
Constructor Details
-
ReverseDepthFirstSearch
Constructor.- Parameters:
graph- the graph to perform a reverse depth first search of
-
-
Method Details
-
outgoingEdgeIterator
Description copied from class:AbstractDepthFirstSearchGet Iterator over "logical" outgoing edges.- Specified by:
outgoingEdgeIteratorin classAbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>, EdgeType extends GraphEdge<EdgeType, VertexType>, VertexType extends GraphVertex<VertexType>>
-
getTarget
Description copied from class:AbstractDepthFirstSearchGet "logical" target of edge.- Specified by:
getTargetin classAbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>, EdgeType extends GraphEdge<EdgeType, VertexType>, VertexType extends GraphVertex<VertexType>>
-
getSource
Description copied from class:AbstractDepthFirstSearchGet "logical" source of edge.- Specified by:
getSourcein classAbstractDepthFirstSearch<GraphType extends Graph<EdgeType,VertexType>, EdgeType extends GraphEdge<EdgeType, VertexType>, VertexType extends GraphVertex<VertexType>>
-