Class ReverseDepthFirstSearch
java.lang.Object
edu.umd.cs.findbugs.graph.AbstractDepthFirstSearch<CFG, Edge, BasicBlock>
edu.umd.cs.findbugs.graph.ReverseDepthFirstSearch<CFG, Edge, BasicBlock>
edu.umd.cs.findbugs.ba.ReverseDepthFirstSearch
- All Implemented Interfaces:
DFSEdgeTypes
Algorithm to perform a reverse depth first search on a CFG. (I.e., depth
first search on reversed CFG.)
- See Also:
-
Field Summary
FieldsFields inherited from class AbstractDepthFirstSearch
BLACK, DEBUG, GRAY, WHITEFields inherited from interface DFSEdgeTypes
BACK_EDGE, CROSS_EDGE, FORWARD_EDGE, TREE_EDGE, UNKNOWN_EDGE -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ReverseDepthFirstSearch
getSource, getTarget, outgoingEdgeIteratorMethods inherited from class AbstractDepthFirstSearch
containsCycle, getColor, getDFSEdgeType, getDiscoveryTime, getFinishTime, getFinishTimeList, search, setSearchTreeCallback, setVertexChooser, topologicalSortIterator, unvisitedVertices, visitMe
-
Field Details
-
firstRoot
-
-
Constructor Details
-
ReverseDepthFirstSearch
Constructor.- Parameters:
cfg- the CFG to perform the reverse depth first search on
-
-
Method Details
-
getNextSearchTreeRoot
Description copied from class:AbstractDepthFirstSearchChoose the next search tree root. By default, this method just scans for a WHITE vertex. Subclasses may override this method in order to choose which vertices are used as search tree roots.- Overrides:
getNextSearchTreeRootin classAbstractDepthFirstSearch<CFG, Edge, BasicBlock>- Returns:
- the next search tree root
-