Package org.neo4j.gds
Class Algorithm<ME extends Algorithm<ME,RESULT>,RESULT>
- java.lang.Object
-
- org.neo4j.gds.Algorithm<ME,RESULT>
-
- All Implemented Interfaces:
org.neo4j.gds.core.utils.TerminationFlag
- Direct Known Subclasses:
ScaleProperties
public abstract class Algorithm<ME extends Algorithm<ME,RESULT>,RESULT> extends java.lang.Object implements org.neo4j.gds.core.utils.TerminationFlag
-
-
Field Summary
Fields Modifier and Type Field Description protected org.neo4j.gds.core.utils.progress.tasks.ProgressTracker
progressTracker
protected org.neo4j.gds.core.utils.TerminationFlag
terminationFlag
-
Constructor Summary
Constructors Modifier Constructor Description protected
Algorithm(org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract RESULT
compute()
org.neo4j.gds.core.utils.progress.tasks.ProgressTracker
getProgressTracker()
org.neo4j.gds.core.utils.TerminationFlag
getTerminationFlag()
abstract ME
me()
abstract void
release()
Release internal data structures used by the algorithm.boolean
running()
ME
withTerminationFlag(org.neo4j.gds.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.
-
withTerminationFlag
public ME withTerminationFlag(org.neo4j.gds.core.utils.TerminationFlag terminationFlag)
-
getTerminationFlag
public org.neo4j.gds.core.utils.TerminationFlag getTerminationFlag()
-
getProgressTracker
public org.neo4j.gds.core.utils.progress.tasks.ProgressTracker getProgressTracker()
-
running
public boolean running()
- Specified by:
running
in interfaceorg.neo4j.gds.core.utils.TerminationFlag
-
-