Class TreeExtremaCalculator

java.lang.Object
org.graph4j.GraphAlgorithm
org.graph4j.metrics.TreeExtremaCalculator

public class TreeExtremaCalculator extends GraphAlgorithm
Determines the diameter, radius, center and periphery for unweighted, undirected trees.
Author:
Cristian Frăsinaru, Ignat Gabriel-Andrei
See Also:
  • Constructor Details

    • TreeExtremaCalculator

      public TreeExtremaCalculator(Graph graph)
    • TreeExtremaCalculator

      public TreeExtremaCalculator(Graph graph, int startVertex)
  • Method Details

    • getCenter

      public VertexSet getCenter()
    • getDiameter

      public int getDiameter()
    • getRadius

      public int getRadius()
    • getPeriphery

      public VertexSet getPeriphery()