Enum TopKGeometricCentrality.Centrality

java.lang.Object
java.lang.Enum<TopKGeometricCentrality.Centrality>
it.unimi.dsi.webgraph.algo.TopKGeometricCentrality.Centrality
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TopKGeometricCentrality.Centrality>, java.lang.constant.Constable
Enclosing class:
TopKGeometricCentrality

public static enum TopKGeometricCentrality.Centrality
extends java.lang.Enum<TopKGeometricCentrality.Centrality>
The centralities with respect to which it is possible to find the top k nodes.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    Enum Constant Description
    EXPONENTIAL
    Exponential Centrality: eα(x) = Σy αd(x,y) for some real number α ∈ (0..1).
    HARMONIC
    Harmonic Centrality: h(x) = Σ yx 1 ⁄ d(x,y).
    LIN
    Lin's Centrality: ℓ(x) = R(x)2 ⁄  ΣyR(x) d(x,y), where R(x) is the set of nodes reachable from x.
  • Method Summary

    Modifier and Type Method Description
    static TopKGeometricCentrality.Centrality valueOf​(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    static TopKGeometricCentrality.Centrality[] values()
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • LIN

      public static final TopKGeometricCentrality.Centrality LIN
      Lin's Centrality: ℓ(x) = R(x)2 ⁄  ΣyR(x) d(x,y), where R(x) is the set of nodes reachable from x. Note that for a strongly connected graph Lin's centrality is exactly Bavelas's closeness centrality, that is, 1 ⁄  Σyd(x, y), multiplied by the square of the number of nodes.
    • HARMONIC

      public static final TopKGeometricCentrality.Centrality HARMONIC
      Harmonic Centrality: h(x) = Σ yx 1 ⁄ d(x,y).
    • EXPONENTIAL

      public static final TopKGeometricCentrality.Centrality EXPONENTIAL
      Exponential Centrality: eα(x) = Σy αd(x,y) for some real number α ∈ (0..1).
  • Method Details

    • values

      public static TopKGeometricCentrality.Centrality[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static TopKGeometricCentrality.Centrality valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null