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:
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends 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) = ∑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
Modifier and Type Method Description static TopKGeometricCentrality.Centrality
valueOf(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 Details
-
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
Harmonic Centrality: h(x) = ∑y ≠ x 1 ⁄ d(x,y). -
EXPONENTIAL
Exponential Centrality: eα(x) = ∑y αd(x,y) for some real number α ∈ (0..1).
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-