Package com.mastfrog.graph.algorithm
Class EigenvectorCentrality
- java.lang.Object
-
- com.mastfrog.graph.algorithm.Algorithm<double[],A>
-
- com.mastfrog.graph.algorithm.RankingAlgorithm<EigenvectorCentrality>
-
- com.mastfrog.graph.algorithm.EigenvectorCentrality
-
public final class EigenvectorCentrality extends RankingAlgorithm<EigenvectorCentrality>
- Author:
- Tim Boudreau
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.mastfrog.graph.algorithm.Algorithm
Algorithm.BooleanParameter<A extends Algorithm>, Algorithm.DoubleParameter<A extends Algorithm>, Algorithm.IntParameter<A extends Algorithm>
-
-
Field Summary
Fields Modifier and Type Field Description static Algorithm.BooleanParameter<EigenvectorCentrality>IGNORE_SELF_EDGESstatic Algorithm.IntParameter<EigenvectorCentrality>MAXIMUM_ITERATIONSstatic Algorithm.DoubleParameter<EigenvectorCentrality>MINIMUM_DIFFERENCEstatic Algorithm.BooleanParameter<EigenvectorCentrality>NORMALIZEstatic Algorithm.BooleanParameter<EigenvectorCentrality>USE_IN_EDGES
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]apply(IntGraph graph)EigenvectorCentralitysetParameter(Algorithm.BooleanParameter<EigenvectorCentrality> param, boolean value)EigenvectorCentralitysetParameter(Algorithm.DoubleParameter<EigenvectorCentrality> param, double value)EigenvectorCentralitysetParameter(Algorithm.IntParameter<EigenvectorCentrality> param, int value)-
Methods inherited from class com.mastfrog.graph.algorithm.RankingAlgorithm
apply
-
Methods inherited from class com.mastfrog.graph.algorithm.Algorithm
createBooleanParameter, createDoubleParameter, createIntegerParameter, eigenvectorCentrality, pageRank, toString
-
-
-
-
Field Detail
-
MAXIMUM_ITERATIONS
public static Algorithm.IntParameter<EigenvectorCentrality> MAXIMUM_ITERATIONS
-
MINIMUM_DIFFERENCE
public static Algorithm.DoubleParameter<EigenvectorCentrality> MINIMUM_DIFFERENCE
-
USE_IN_EDGES
public static Algorithm.BooleanParameter<EigenvectorCentrality> USE_IN_EDGES
-
IGNORE_SELF_EDGES
public static Algorithm.BooleanParameter<EigenvectorCentrality> IGNORE_SELF_EDGES
-
NORMALIZE
public static Algorithm.BooleanParameter<EigenvectorCentrality> NORMALIZE
-
-
Method Detail
-
apply
public double[] apply(IntGraph graph)
- Specified by:
applyin classAlgorithm<double[],EigenvectorCentrality>
-
setParameter
public EigenvectorCentrality setParameter(Algorithm.DoubleParameter<EigenvectorCentrality> param, double value)
- Overrides:
setParameterin classAlgorithm<double[],EigenvectorCentrality>
-
setParameter
public EigenvectorCentrality setParameter(Algorithm.IntParameter<EigenvectorCentrality> param, int value)
- Overrides:
setParameterin classAlgorithm<double[],EigenvectorCentrality>
-
setParameter
public EigenvectorCentrality setParameter(Algorithm.BooleanParameter<EigenvectorCentrality> param, boolean value)
- Overrides:
setParameterin classAlgorithm<double[],EigenvectorCentrality>
-
-