V - the graph vertex typeE - the graph edge typepublic class TreeMeasurer<V,E>
extends java.lang.Object
| Constructor and Description |
|---|
TreeMeasurer(Graph<V,E> graph)
Constructs a new instance of TreeMeasurer.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<V> |
getGraphCenter()
Compute the graph center.
|
public java.util.Set<V> getGraphCenter()
Note: The input graph must be undirected.
java.lang.IllegalArgumentException - if graph is not undirectedCopyright © 2019. All Rights Reserved.