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