public class Connectivity
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> |
findIsolatedElements(G graph)
Compute all isolated elements of a graph.
|
static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> |
getStronglyConnectedComponents(G graph)
Compute all of a graph's strongly connected components.
|
static <N extends INode<?,?,N>> |
getWeaklyConnectedComponent(N node)
Get the weakly connected component of a given node.
|
static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> |
getWeaklyConnectedComponents(G graph)
Compute all of a graph's weakly connected components.
|
static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> |
isStronglyConnected(G graph)
Check if a graph is strongly connected.
|
static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> |
isWeaklyConnected(G graph)
Check if a graph is weakly connected.
|
public static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> java.util.Set<N> findIsolatedElements(G graph)
G - The type of the graph that is examine.N - The type of the graph's nodes.graph - The graph whose weak connectivity should be checked.public static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> boolean isWeaklyConnected(G graph)
G - The type of the graph that is examine.N - The type of the graph's nodes.graph - The graph whose weak connectivity should be checked.public static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> java.util.Set<? extends java.util.Set<N>> getWeaklyConnectedComponents(G graph)
G - The type of the graph that is examine.N - The type of the graph's nodes.graph - The graph whose strong connectivity should be checked.public static <N extends INode<?,?,N>> java.util.Set<N> getWeaklyConnectedComponent(N node)
N - The type of the graph's nodes.node - The node whose component should be calculated.public static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> boolean isStronglyConnected(G graph)
G - The type of the graph that is examine.N - The type of the graph's nodes.graph - The graph whose strong connectivity should be checked.public static <G extends IGraph<G,?,N>,N extends INode<G,?,N>> java.util.Set<? extends java.util.Set<N>> getStronglyConnectedComponents(G graph)
G - The type of the graph that is examine.N - The type of the graph's nodes.graph - The graph that should be examined.