- Type Parameters:
V- the graph vertex type
E- the graph edge type
- All Implemented Interfaces:
public class GabowStrongConnectivityInspector<V,E> extends ObjectComputes the strongly connected components of a directed graph. The implemented algorithm follows Cheriyan-Mehlhorn/Gabow's algorithm presented in Path-based depth-first search for strong and biconnected components by Gabow (2000). The running time is order of $O(|V|+|E|)$.
- Sarah Komla-Ebri
All Methods Instance Methods Concrete Methods Modifier and Type Method Description
getCondensation()Compute the condensation of the given graph.
getGraph()Return the underlying graph.
getStronglyConnectedComponents()Computes a list of subgraphs of the given graph.
isStronglyConnected()Returns true if the graph is strongly connected, false otherwise.
Sets, where each set contains vertices which together form a strongly connected component within the given graph.
Sets containing the strongly connected components
public Graph<V,E> getGraph()Return the underlying graph.
public boolean isStronglyConnected()Returns true if the graph is strongly connected, false otherwise.
getStronglyConnectedComponentsComputes a list of subgraphs of the given graph. Each subgraph will represent a strongly connected component and will contain all vertices of that component. The subgraph will have an edge $(u,v)$ iff $u$ and $v$ are contained in the strongly connected component.
public Graph<Graph<V,E>,DefaultEdge> getCondensation()Compute the condensation of the given graph. If each strongly connected component is contracted to a single vertex, the resulting graph is a directed acyclic graph, the condensation of the graph.