Class NumEdges<U>

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

public class NumEdges<U>
extends java.lang.Object
implements GraphMetric<U>
Computes the number of edges in the graph.
  • Constructor Summary

    Constructors 
    Constructor Description
    NumEdges()  
  • 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
  • Constructor Details

  • Method Details

    • compute

      public double compute​(Graph<U> graph)
      Description copied from interface: GraphMetric
      Computes the value.
      Specified by:
      compute in interface GraphMetric<U>
      Parameters:
      graph - graph metric.
      Returns:
      the value of the metric.