| Constructor and Description |
|---|
GraphProperties(Graph<V,E> graph) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<V> |
getCutVertices()
Finds all cut vertices of a graph
|
java.util.List<java.lang.Double> |
getEigenValues()
Finds the graph's eigen values
|
boolean |
isBiconnected()
Checks if the graph is biconnected
|
boolean |
isConnected()
Checks is graph is connected
|
boolean |
isConnected(java.util.List<V> excluding)
Checks is graph is connected
|
boolean |
isCyclic()
Checks if the graph is cyclic
|
boolean |
isRing()
Checks if the graph is a ring
|
boolean |
isTree()
Checks if the graph is a tree
|
java.util.List<Graph<V,E>> |
listBiconnectedComponents()
Finds all biconnected components of a graph
|
java.util.List<java.util.List<E>> |
listMultiEdges()
Finds all multiedges in a graph
|
java.util.List<V> |
treeLeaves(V root)
Lists all tree leaves (presumes that the graph is a tree)
|
public boolean isConnected()
true if the graph is connected false otherwisepublic java.util.List<V> getCutVertices()
public boolean isBiconnected()
true if graph is biconnected, @{code false} otherwisepublic java.util.List<java.lang.Double> getEigenValues()
public boolean isConnected(java.util.List<V> excluding)
excluding - A list of vertices such that the graph should stay connected even if they are removedtrue if graph is connected, false otherwisepublic boolean isCyclic()
true if graph is cyclic, @{code false} otherwisepublic boolean isTree()
true if graph is a tree, @{code false} otherwisepublic java.util.List<V> treeLeaves(V root)
root - The tree's rootpublic java.util.List<java.util.List<E>> listMultiEdges()
public java.util.List<Graph<V,E>> listBiconnectedComponents()
public boolean isRing()
true if graph is a ring, @{code false} otherwise