Class ComplementaryGraphMetric<U>

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

public class ComplementaryGraphMetric<U>
extends java.lang.Object
implements GraphMetric<U>
Computes a graph metric over the complementary graph.
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private GraphMetric<U> metric
    The metric to find on the complementary graph.
  • Constructor Summary

    Constructors 
    Constructor Description
    ComplementaryGraphMetric​(GraphMetric<U> metric)
    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
  • Field Details

    • metric

      private final GraphMetric<U> metric
      The metric to find on the complementary graph.
  • 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.