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:
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.ProgressLoggerprogressLoggerprotected org.neo4j.graphalgo.core.utils.TerminationFlagterminationFlag
-
Constructor Summary
Constructors Constructor Description Algorithm()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description abstract RESULTcompute()org.neo4j.graphalgo.core.utils.ProgressLoggergetProgressLogger()org.neo4j.graphalgo.core.utils.TerminationFlaggetTerminationFlag()abstract MEme()abstract voidrelease()Release internal data structures used by the algorithm.booleanrunning()MEwithProgressLogger(org.neo4j.graphalgo.core.utils.ProgressLogger progressLogger)Deprecated.MEwithTerminationFlag(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:
runningin interfaceorg.neo4j.graphalgo.core.utils.TerminationFlag
-
-