|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.graphstream.algorithm.measure.ConnectivityMeasure
public class ConnectivityMeasure
Get the vertex-connectivity of a graph. A graph is said to be k-vertex-connected (or k-connected) if the graph remains connected when you delete fewer than k vertices from the graph (from Wikipedia).
Nested Class Summary | |
---|---|
static class |
ConnectivityMeasure.EdgeConnectivityMeasure
|
static class |
ConnectivityMeasure.VertexConnectivityMeasure
|
Constructor Summary | |
---|---|
ConnectivityMeasure()
|
Method Summary | |
---|---|
static int |
getEdgeConnectivity(org.graphstream.graph.Graph g)
Get the edge-connectivity k of a graph such that there is a k-tuple of edges whose removal disconnects the graph. |
static org.graphstream.graph.Edge[] |
getKDisconnectingEdgeTuple(org.graphstream.graph.Graph g,
int k)
Get a k-tuple of edges whose removal causes the disconnection of the graph. |
static org.graphstream.graph.Node[] |
getKDisconnectingNodeTuple(org.graphstream.graph.Graph g,
int k)
Get a k-tuple of nodes whose removal causes the disconnection of the graph. |
static int |
getVertexConnectivity(org.graphstream.graph.Graph g)
Get the vertex-connectivity k of a graph such that there is a k-tuple of nodes whose removal disconnects the graph. |
static boolean |
isKEdgeConnected(org.graphstream.graph.Graph g,
int k)
Check if a graph is k-edge-connected, ie. there is no (k-1)-edge-tuple such that the removal of these edges leads to disconnect the graph. |
static boolean |
isKVertexConnected(org.graphstream.graph.Graph g,
int k)
Check if a graph is k-vertex-connected, ie. there is no (k-1)-node-tuple such that the removal of these nodes leads to disconnect the graph. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConnectivityMeasure()
Method Detail |
---|
public static int getVertexConnectivity(org.graphstream.graph.Graph g)
g
- the graph
public static int getEdgeConnectivity(org.graphstream.graph.Graph g)
g
- the graph
public static boolean isKVertexConnected(org.graphstream.graph.Graph g, int k)
g
- the graphk
- connectivity being checked
public static boolean isKEdgeConnected(org.graphstream.graph.Graph g, int k)
g
- the graphk
- connectivity being checked
public static org.graphstream.graph.Node[] getKDisconnectingNodeTuple(org.graphstream.graph.Graph g, int k)
g
- the graphk
- max size of the required tuple
public static org.graphstream.graph.Edge[] getKDisconnectingEdgeTuple(org.graphstream.graph.Graph g, int k)
g
- the graphk
- max size of the required tuple
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |