|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.inria.opengve.bridge.algorithms.GraphUtility
public class GraphUtility
This static class permit to verify various graph properties.
| Nested Class Summary | |
|---|---|
static class |
GraphUtility.Propriety
All possible properties that can be tested. |
| Method Summary | ||
|---|---|---|
static
|
checkProprieties(Graph<V,L> graph,
GraphUtility.Propriety... propieties)
Check if a graph have a given list of properties. |
|
static
|
copyGraphInGraph(Graph<V,L> graph,
Graph<V,L> emptyGraph)
This method must return a subset-free copy of the graph. |
|
static
|
haveLoopLinks(Graph<V,L> graph)
Test if a given graph contains a loop. |
|
static
|
isConnectedGraph(Graph<V,L> graph,
boolean stronglyConnectedRequired)
Test the connectivity of a given graph. |
|
static
|
isMultiGraph(Graph<V,L> graph)
Test if a given graph is a multigraph. |
|
static
|
rechabilityLinks(V startingVertex,
Graph<V,L> graph)
Give the set of all reachable links from a given starting vertex. |
|
static
|
rechabilityVertices(V startingVertex,
Graph<V,L> graph,
boolean includeStatingPoint)
Give the set of vertices reachable from a given one. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <V,L extends Link<V>> boolean checkProprieties(Graph<V,L> graph,
GraphUtility.Propriety... propieties)
graph - The graph.propieties - The properties that must be check.
true if the graph check all properties and
false otherwise.
public static <V,L extends Link<V>> HierarchicalSet<V> rechabilityVertices(V startingVertex,
Graph<V,L> graph,
boolean includeStatingPoint)
startingVertex - The starting vertex.graph - The graph.includeStatingPoint - boolean saying if the starting point must be also added to the
resulting set.
public static <V,L extends Link<V>> HierarchicalSet<L> rechabilityLinks(V startingVertex,
Graph<V,L> graph)
startingVertex - The starting vertex.graph - The graph.
public static <V,L extends Link<V>> void copyGraphInGraph(Graph<V,L> graph,
Graph<V,L> emptyGraph)
graph - a start graphemptyGraph - a graph initally empty that will became a copy of
graphpublic static <V,L extends Link<V>> boolean isMultiGraph(Graph<V,L> graph)
graph - The graph.
true if the given graph is a multigraph and
false otherwise.
public static <V,L extends Link<V>> boolean isConnectedGraph(Graph<V,L> graph,
boolean stronglyConnectedRequired)
V - The type of verticesL - The type of linksgraph - The graph.stronglyConnectedRequired - true for testing strongly connectivity and
false otherwise.
true if the property is verified and
false otherwise.public static <V,L extends Link<V>> boolean haveLoopLinks(Graph<V,L> graph)
graph - The graph.
true if the graph contain at least a loop and
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||