Package it.unimi.dsi.webgraph.algo
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>
- 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.
-
-
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) = ∑y ≠ x 1 ⁄ d(x,y).LIN
Lin's Centrality: ℓ(x) = |R(x)|2 ⁄ ∑y∈R(x) d(x,y), where R(x) is the set of nodes reachable from x.
-
Method Summary
All Methods Static Methods Concrete Methods 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.
-
-
-
Enum Constant Detail
-
LIN
public static final TopKGeometricCentrality.Centrality LIN
Lin's Centrality: ℓ(x) = |R(x)|2 ⁄ ∑y∈R(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) = ∑y ≠ x 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 Detail
-
values
public static TopKGeometricCentrality.Centrality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TopKGeometricCentrality.Centrality c : TopKGeometricCentrality.Centrality.values()) System.out.println(c);
- 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 namejava.lang.NullPointerException
- if the argument is null
-
-