java.lang.Object
es.uam.eps.ir.relison.sna.metrics.distance.graph.Diameter<U>
Type Parameters:
U - Type of the users
All Implemented Interfaces:
GraphMetric<U>

public class Diameter<U>
extends java.lang.Object
implements GraphMetric<U>
Computes the diameter of a network.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private DistanceCalculator<U> dc
    Distance calculator
  • Constructor Summary

    Constructors 
    Constructor Description
    Diameter()
    Constructor.
    Diameter​(DistanceCalculator<U> dc)
    Constructor.
  • Method Summary

    Modifier and Type Method Description
    double compute​(Graph<U> graph)
    Computes the value.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait