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 Summary
Nested 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.GraphSearch
GraphSearch.Result<V extends Vertex,E extends Edge<V>> 
 - 
 
- 
Constructor Summary
Constructors Constructor Description TarjanGraphSearch() 
- 
Method Summary
All 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
- 
search
public 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 interfaceGraphSearch<V extends Vertex,E extends Edge<V>>- Parameters:
 graph- graph to be searchedweigher- optional edge-weigher; if null,DefaultEdgeWeigherwill be used (assigns equal weights to all links)- Returns:
 - search results
 
 
 - 
 
 -