Class Algorithm<ME extends Algorithm<ME,​RESULT>,​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.ProgressLogger progressLogger  
      protected org.neo4j.graphalgo.core.utils.TerminationFlag terminationFlag  
      • Fields inherited from interface org.neo4j.graphalgo.core.utils.TerminationFlag

        RUN_CHECK_NODE_COUNT, RUNNING_TRUE
    • Constructor Summary

      Constructors 
      Constructor Description
      Algorithm()  
    • Field Detail

      • progressLogger

        protected org.neo4j.graphalgo.core.utils.ProgressLogger progressLogger
      • terminationFlag

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

      • Algorithm

        public Algorithm()
    • 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 interface org.neo4j.graphalgo.core.utils.TerminationFlag