Package org.onlab.graph
Class DepthFirstSearch<V extends Vertex,E extends Edge<V>>
- java.lang.Object
- 
- org.onlab.graph.AbstractGraphPathSearch<V,E>
- 
- org.onlab.graph.DepthFirstSearch<V,E>
 
 
- 
- All Implemented Interfaces:
- GraphPathSearch<V,E>
 
 public class DepthFirstSearch<V extends Vertex,E extends Edge<V>> extends AbstractGraphPathSearch<V,E> DFS graph search algorithm implemented via iteration rather than recursion.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classDepthFirstSearch.EdgeTypeGraph edge types as classified by the DFS algorithm.classDepthFirstSearch.SpanningTreeResultGraph search result which includes edge classification for building a spanning tree.- 
Nested classes/interfaces inherited from class org.onlab.graph.AbstractGraphPathSearchAbstractGraphPathSearch.DefaultResult
 - 
Nested classes/interfaces inherited from interface org.onlab.graph.GraphPathSearchGraphPathSearch.Result<V extends Vertex,E extends Edge<V>>
 
- 
 - 
Field Summary- 
Fields inherited from interface org.onlab.graph.GraphPathSearchALL_PATHS
 
- 
 - 
Constructor SummaryConstructors Constructor Description DepthFirstSearch()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DepthFirstSearch.SpanningTreeResultinternalSearch(Graph<V,E> graph, V src, V dst, EdgeWeigher<V,E> weigher, int maxPaths)protected booleanisForwardEdge(AbstractGraphPathSearch.DefaultResult result, E edge)Determines whether the specified edge is a forward edge using the accumulated set of parent edges for each vertex.- 
Methods inherited from class org.onlab.graph.AbstractGraphPathSearchcheckArguments, search
 
- 
 
- 
- 
- 
Method Detail- 
internalSearchprotected DepthFirstSearch.SpanningTreeResult internalSearch(Graph<V,E> graph, V src, V dst, EdgeWeigher<V,E> weigher, int maxPaths) - Specified by:
- internalSearchin class- AbstractGraphPathSearch<V extends Vertex,E extends Edge<V>>
 
 - 
isForwardEdgeprotected boolean isForwardEdge(AbstractGraphPathSearch.DefaultResult result, E edge) Determines whether the specified edge is a forward edge using the accumulated set of parent edges for each vertex.- Parameters:
- result- search result
- edge- edge to be classified
- Returns:
- true if the edge is a forward edge
 
 
- 
 
-