Package org.neo4j.gds

Class Algorithm<RESULT>

  • Direct Known Subclasses:
    ScaleProperties

    public abstract class Algorithm<RESULT>
    extends java.lang.Object
    • 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)  
    • Field Detail

      • progressTracker

        protected final org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker
      • terminationFlag

        protected org.neo4j.gds.core.utils.TerminationFlag terminationFlag
    • Constructor Detail

      • Algorithm

        protected Algorithm​(org.neo4j.gds.core.utils.progress.tasks.ProgressTracker progressTracker)
    • Method Detail

      • compute

        public abstract RESULT compute()
      • release

        public abstract void release()
        Release internal data structures used by the algorithm.
      • setTerminationFlag

        public void setTerminationFlag​(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()