public class TarjanGraphSearch<V extends Vertex,E extends Edge<V>> extends Object implements GraphSearch<V,E>
| Modifier and Type | Class and Description |
|---|---|
static class |
TarjanGraphSearch.SccResult<V extends Vertex,E extends Edge<V>>
Graph search result augmented with SCC vertexData.
|
GraphSearch.Result<V extends Vertex,E extends Edge<V>>| Constructor and Description |
|---|
TarjanGraphSearch() |
| Modifier and Type | Method and Description |
|---|---|
TarjanGraphSearch.SccResult<V,E> |
search(Graph<V,E> graph,
EdgeWeight<V,E> weight)
Searches the specified graph.
|
public TarjanGraphSearch.SccResult<V,E> search(Graph<V,E> graph, EdgeWeight<V,E> weight)
This implementation produces results augmented with information on SCCs within the graph.
To prevent traversal of an edge, the EdgeWeight.weight(E) should
return a negative value as an edge weight.
Copyright © 2016. All rights reserved.