java.lang.Object
org.jgrapht.alg.scoring.AlphaCentrality<V,E>
- Type Parameters:
V
- the graph vertex typeE
- the graph edge type
- All Implemented Interfaces:
VertexScoringAlgorithm<V,java.lang.Double>
@Deprecated public final class AlphaCentrality<V,E> extends java.lang.Object implements VertexScoringAlgorithm<V,java.lang.Double>
Deprecated.
Please use
KatzCentrality
instead.Deprecated implementation of Katz centrality.
- Author:
- Dimitrios Michail, Pratik Tibrewal
-
Field Summary
Fields Modifier and Type Field Description static double
DAMPING_FACTOR_DEFAULT
Deprecated.Damping factor default value.static double
EXOGENOUS_FACTOR_DEFAULT
Deprecated.Exogenous factor default value.static int
MAX_ITERATIONS_DEFAULT
Deprecated.Default number of maximum iterations.static double
TOLERANCE_DEFAULT
Deprecated.Default value for the tolerance. -
Constructor Summary
Constructors Constructor Description AlphaCentrality(Graph<V,E> g)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, double exogenousFactor)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, double exogenousFactor, int maxIterations)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, double exogenousFactor, int maxIterations, double tolerance)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations)
Deprecated.Create and execute an instance of AlphaCentrality.AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations, double tolerance)
Deprecated.Create and execute an instance of AlphaCentrality. -
Method Summary
Modifier and Type Method Description java.util.Map<V,java.lang.Double>
getScores()
Deprecated.Get a map with the scores of all verticesjava.lang.Double
getVertexScore(V v)
Deprecated.Get a vertex score
-
Field Details
-
MAX_ITERATIONS_DEFAULT
public static final int MAX_ITERATIONS_DEFAULTDeprecated.Default number of maximum iterations.- See Also:
- Constant Field Values
-
TOLERANCE_DEFAULT
public static final double TOLERANCE_DEFAULTDeprecated.Default value for the tolerance. The calculation will stop if the difference of AlphaCentrality values between iterations change less than this value.- See Also:
- Constant Field Values
-
DAMPING_FACTOR_DEFAULT
public static final double DAMPING_FACTOR_DEFAULTDeprecated.Damping factor default value.- See Also:
- Constant Field Values
-
EXOGENOUS_FACTOR_DEFAULT
public static final double EXOGENOUS_FACTOR_DEFAULTDeprecated.Exogenous factor default value.- See Also:
- Constant Field Values
-
-
Constructor Details
-
AlphaCentrality
Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graph
-
AlphaCentrality
Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factor
-
AlphaCentrality
Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactor
- the exogenous factor
-
AlphaCentrality
public AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction)Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactorFunction
- ToDoubleFunction a provider of exogenous factors per vertex
-
AlphaCentrality
public AlphaCentrality(Graph<V,E> g, double dampingFactor, double exogenousFactor, int maxIterations)Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactor
- the exogenous factormaxIterations
- the maximum number of iterations to perform
-
AlphaCentrality
public AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations)Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactorFunction
- ToDoubleFunction a provider of exogenous factors per vertexmaxIterations
- the maximum number of iterations to perform
-
AlphaCentrality
public AlphaCentrality(Graph<V,E> g, double dampingFactor, double exogenousFactor, int maxIterations, double tolerance)Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactor
- the exogenous factormaxIterations
- the maximum number of iterations to performtolerance
- the calculation will stop if the difference of AlphaCentrality values between iterations change less than this value
-
AlphaCentrality
public AlphaCentrality(Graph<V,E> g, double dampingFactor, java.util.function.ToDoubleFunction<V> exogenousFactorFunction, int maxIterations, double tolerance)Deprecated.Create and execute an instance of AlphaCentrality.- Parameters:
g
- the input graphdampingFactor
- the damping factorexogenousFactorFunction
- ToDoubleFunction a provider of exogenous factors per vertexmaxIterations
- the maximum number of iterations to performtolerance
- the calculation will stop if the difference of AlphaCentrality values between iterations change less than this value
-
-
Method Details
-
getScores
Deprecated.Get a map with the scores of all vertices- Specified by:
getScores
in interfaceVertexScoringAlgorithm<V,E>
- Returns:
- a map with all scores
-
getVertexScore
Deprecated.Get a vertex score- Specified by:
getVertexScore
in interfaceVertexScoringAlgorithm<V,E>
- Parameters:
v
- the vertex- Returns:
- the score
-