Package org.neo4j.graphalgo
Class Algorithm<ME extends Algorithm<ME,RESULT>,RESULT>
- java.lang.Object
-
- org.neo4j.graphalgo.Algorithm<ME,RESULT>
-
- All Implemented Interfaces:
org.neo4j.graphalgo.core.utils.TerminationFlag
- Direct Known Subclasses:
DegreeCentrality
,PageRank
public abstract class Algorithm<ME extends Algorithm<ME,RESULT>,RESULT> extends java.lang.Object implements org.neo4j.graphalgo.core.utils.TerminationFlag
-
-
Field Summary
Fields Modifier and Type Field Description protected org.neo4j.graphalgo.core.utils.ProgressLogger
progressLogger
protected org.neo4j.graphalgo.core.utils.TerminationFlag
terminationFlag
-
Constructor Summary
Constructors Constructor Description Algorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract RESULT
compute()
org.neo4j.graphalgo.core.utils.ProgressLogger
getProgressLogger()
org.neo4j.graphalgo.core.utils.TerminationFlag
getTerminationFlag()
abstract ME
me()
abstract void
release()
Release internal data structures used by the algorithm.boolean
running()
ME
withProgressLogger(org.neo4j.graphalgo.core.utils.ProgressLogger progressLogger)
Deprecated.ME
withTerminationFlag(org.neo4j.graphalgo.core.utils.TerminationFlag terminationFlag)
-
-
-
Method Detail
-
compute
public abstract RESULT compute()
-
me
public abstract ME me()
-
release
public abstract void release()
Release internal data structures used by the algorithm.
-
withProgressLogger
@Deprecated public ME withProgressLogger(org.neo4j.graphalgo.core.utils.ProgressLogger progressLogger)
Deprecated.
-
withTerminationFlag
public ME withTerminationFlag(org.neo4j.graphalgo.core.utils.TerminationFlag terminationFlag)
-
getTerminationFlag
public org.neo4j.graphalgo.core.utils.TerminationFlag getTerminationFlag()
-
getProgressLogger
public org.neo4j.graphalgo.core.utils.ProgressLogger getProgressLogger()
-
running
public boolean running()
- Specified by:
running
in interfaceorg.neo4j.graphalgo.core.utils.TerminationFlag
-
-