Enum TopKGeometricCentrality.Centrality

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

public static enum TopKGeometricCentrality.Centrality
extends Enum<TopKGeometricCentrality.Centrality>
The centralities with respect to which it is possible to find the top k nodes.
  • 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​(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null