Package org.onlab.graph
Class TarjanGraphSearch<V extends Vertex,E extends Edge<V>>
- java.lang.Object
- 
- org.onlab.graph.TarjanGraphSearch<V,E>
 
- 
- All Implemented Interfaces:
- GraphSearch<V,E>
 
 public class TarjanGraphSearch<V extends Vertex,E extends Edge<V>> extends Object implements GraphSearch<V,E> Tarjan algorithm for searching a graph and producing results describing the graph SCC (strongly-connected components).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTarjanGraphSearch.SccResult<V extends Vertex,E extends Edge<V>>Graph search result augmented with SCC vertexData.- 
Nested classes/interfaces inherited from interface org.onlab.graph.GraphSearchGraphSearch.Result<V extends Vertex,E extends Edge<V>>
 
- 
 - 
Constructor SummaryConstructors Constructor Description TarjanGraphSearch()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TarjanGraphSearch.SccResult<V,E>search(Graph<V,E> graph, EdgeWeigher<V,E> weigher)Searches the specified graph.
 
- 
- 
- 
Method Detail- 
searchpublic TarjanGraphSearch.SccResult<V,E> search(Graph<V,E> graph, EdgeWeigher<V,E> weigher) Searches the specified graph.This implementation produces results augmented with information on SCCs within the graph. To prevent traversal of an edge, the EdgeWeigher.weight(E)should return a negative value as an edge weigher.- Specified by:
- searchin interface- GraphSearch<V extends Vertex,E extends Edge<V>>
- Parameters:
- graph- graph to be searched
- weigher- optional edge-weigher; if null,- DefaultEdgeWeigherwill be used (assigns equal weights to all links)
- Returns:
- search results
 
 
- 
 
-