Package org.graph4j.metrics
Class TreeExtremaCalculator
java.lang.Object
org.graph4j.GraphAlgorithm
org.graph4j.metrics.TreeExtremaCalculator
Determines the diameter, radius, center and periphery for unweighted,
undirected trees.
- Author:
- Cristian Frăsinaru, Ignat Gabriel-Andrei
- See Also:
-
Field Summary
Fields inherited from class org.graph4j.GraphAlgorithm
directed, graph -
Constructor Summary
ConstructorsConstructorDescriptionTreeExtremaCalculator(Graph graph) TreeExtremaCalculator(Graph graph, int startVertex) -
Method Summary
Modifier and TypeMethodDescriptionintintMethods inherited from class org.graph4j.GraphAlgorithm
getGraph
-
Constructor Details
-
TreeExtremaCalculator
-
TreeExtremaCalculator
-
-
Method Details
-
getCenter
-
getDiameter
public int getDiameter() -
getRadius
public int getRadius() -
getPeriphery
-