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 null
public Set<V> getGraphCenter()
Note: The input graph must be undirected.
IllegalArgumentException
- if graph
is not undirectedCopyright © 2019. All rights reserved.