public class GraphUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
GraphUtil.Graph
Directed graph API
|
| Constructor and Description |
|---|
GraphUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int[] |
stronglyConnectedComponents(GraphUtil.Graph graph)
Computes the strongly connected components of the graph
|
static GraphUtil.Graph |
transpose(GraphUtil.Graph graph)
Transpose the graph i.e. every edge is reversed.
|
public static GraphUtil.Graph transpose(GraphUtil.Graph graph)
graph - a Graphpublic static int[] stronglyConnectedComponents(GraphUtil.Graph graph)
graph - the input graph on which to compute the strongly
connected componentsCopyright © 2018 Laurent Michel, Pierre Schaus, Pascal Van Hentenryck. All rights reserved.