Package org.neo4j.graphalgo.degree
Class DegreeCentrality
- java.lang.Object
-
- org.neo4j.graphalgo.Algorithm<DegreeCentrality,DegreeCentrality>
-
- org.neo4j.graphalgo.degree.DegreeCentrality
-
- All Implemented Interfaces:
org.neo4j.graphalgo.core.utils.TerminationFlag
public class DegreeCentrality extends Algorithm<DegreeCentrality,DegreeCentrality>
-
-
Field Summary
Fields Modifier and Type Field Description static double
DEFAULT_WEIGHT
-
Fields inherited from class org.neo4j.graphalgo.Algorithm
progressLogger, terminationFlag
-
-
Constructor Summary
Constructors Constructor Description DegreeCentrality(org.neo4j.graphalgo.api.Graph graph, java.util.concurrent.ExecutorService executor, int concurrency, boolean weighted, org.neo4j.graphalgo.core.utils.paged.AllocationTracker tracker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Algorithm<?,?>
algorithm()
DegreeCentrality
compute()
DegreeCentrality
me()
void
release()
Release internal data structures used by the algorithm.CentralityResult
result()
-
Methods inherited from class org.neo4j.graphalgo.Algorithm
getProgressLogger, getTerminationFlag, running, withProgressLogger, withTerminationFlag
-
-
-
-
Field Detail
-
DEFAULT_WEIGHT
public static final double DEFAULT_WEIGHT
- See Also:
- Constant Field Values
-
-
Method Detail
-
compute
public DegreeCentrality compute()
- Specified by:
compute
in classAlgorithm<DegreeCentrality,DegreeCentrality>
-
algorithm
public Algorithm<?,?> algorithm()
-
me
public DegreeCentrality me()
- Specified by:
me
in classAlgorithm<DegreeCentrality,DegreeCentrality>
-
release
public void release()
Description copied from class:Algorithm
Release internal data structures used by the algorithm.- Specified by:
release
in classAlgorithm<DegreeCentrality,DegreeCentrality>
-
result
public CentralityResult result()
-
-