| Constructor and Description |
|---|
Splitting() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<V> |
findAllCutVertices(Graph<V,E> graph)
Finds a list of graph's cut vertices
A cut vertex is a vertex whose removal would disconnect the remaining graph
|
java.util.List<SplitComponent<V,E>> |
findAllSplitComponents(Graph<V,E> graph,
SplitPair<V,E> splitPair) |
java.util.List<SplitPair<V,E>> |
findAllSplitPairs(Graph<V,E> graph)
Deprecated.
|
java.util.List<SplitPair<V,E>> |
maximalSplitPairs(Graph<V,E> graph,
E edge)
Finds a list of maximal split pair with respect to some edge
A maximal split pair with respect to some edge
is a split pair not dominated by any other split pair with respect to that edge
There may several such pairs
|
Graph<V,E> |
splitGraph(java.util.List<SplitComponent<V,E>> splitComponents,
E edge)
A split graph of a split pair with respect of some edge
is the union of all split components which don't contain that edge
|
Graph<V,E> |
splitGraph(SplitPair<V,E> splitPair,
E edge,
Graph<V,E> graph)
Finds a split graph with respect to the given split pair and edge
|
boolean |
splitPairIsDominantedBy(Graph<V,E> graph,
SplitPair<V,E> dominanted,
SplitPair<V,E> dominant,
E edge)
Checks if one split pair is dominated by another given an edge
A split pair {u,v} is dominated by another split pair {x,y} if
|
boolean |
testSplitComponents(java.util.List<SplitComponent<V,E>> components,
SplitPair<V,E> splitPair)
All components should have two vertices in common: split pair vertices
and no edges
|
public java.util.List<V> findAllCutVertices(Graph<V,E> graph)
graph - The graphpublic java.util.List<SplitPair<V,E>> findAllSplitPairs(Graph<V,E> graph)
graph - The graphpublic java.util.List<SplitComponent<V,E>> findAllSplitComponents(Graph<V,E> graph, SplitPair<V,E> splitPair)
public boolean testSplitComponents(java.util.List<SplitComponent<V,E>> components, SplitPair<V,E> splitPair)
components - Split componentssplitPair - Split pairtrue if the test shows that everything is in order, false otherwisepublic Graph<V,E> splitGraph(java.util.List<SplitComponent<V,E>> splitComponents, E edge)
splitComponents - All split componentsedge - Edgepublic Graph<V,E> splitGraph(SplitPair<V,E> splitPair, E edge, Graph<V,E> graph)
splitPair - Split pairedge - Edgegraph - Graphpublic boolean splitPairIsDominantedBy(Graph<V,E> graph, SplitPair<V,E> dominanted, SplitPair<V,E> dominant, E edge)
graph - The graphdominanted - Potentially dominated split pairdominant - Potentially dominant split pairedge - Edgetrue if dominated is dominated by @{code other}public java.util.List<SplitPair<V,E>> maximalSplitPairs(Graph<V,E> graph, E edge)
graph - The graphedge - The edge with respect to which the pairs are being examined