Package edu.umd.cs.findbugs.graph
Class SearchTreeBuilder<VertexType extends GraphVertex<VertexType>>
java.lang.Object
edu.umd.cs.findbugs.graph.SearchTreeBuilder<VertexType>
- All Implemented Interfaces:
SearchTreeCallback<VertexType>
public class SearchTreeBuilder<VertexType extends GraphVertex<VertexType>>
extends Object
implements SearchTreeCallback<VertexType>
A search tree callback implementation that builds a list of SearchTrees
recording a graph search.
- Author:
- David Hovemeyer
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToSearchTree(VertexType parent, VertexType child) Add an edge to the current search tree.Get an Iterator over the recorded SearchTrees.voidstartSearchTree(VertexType vertex) Start a search tree.
-
Constructor Details
-
SearchTreeBuilder
public SearchTreeBuilder()
-
-
Method Details
-
startSearchTree
Description copied from interface:SearchTreeCallbackStart a search tree.- Specified by:
startSearchTreein interfaceSearchTreeCallback<VertexType extends GraphVertex<VertexType>>- Parameters:
vertex- the root of the search tree
-
addToSearchTree
Description copied from interface:SearchTreeCallbackAdd an edge to the current search tree.- Specified by:
addToSearchTreein interfaceSearchTreeCallback<VertexType extends GraphVertex<VertexType>>- Parameters:
parent- the parent vertexchild- the child vertex
-
searchTreeIterator
Get an Iterator over the recorded SearchTrees.
-