Class CollapsePath


  • public class CollapsePath
    extends org.neo4j.gds.Algorithm<org.neo4j.gds.core.loading.SingleTypeRelationships>
    A path template is a list of relationship types. In this implementation, the list of relationship types is encoded as a list of graphs with each one having only a single relationship type.
    • Field Summary

      • Fields inherited from class org.neo4j.gds.Algorithm

        progressTracker, terminationFlag
    • Constructor Summary

      Constructors 
      Constructor Description
      CollapsePath​(java.util.List<org.neo4j.gds.api.Graph[]> pathTemplates, boolean allowSelfLoops, org.neo4j.gds.RelationshipType mutateRelationshipType, int concurrency, java.util.concurrent.ExecutorService executorService)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.neo4j.gds.core.loading.SingleTypeRelationships compute()  
      void release()  
      • Methods inherited from class org.neo4j.gds.Algorithm

        getProgressTracker, getTerminationFlag, setTerminationFlag
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CollapsePath

        public CollapsePath​(java.util.List<org.neo4j.gds.api.Graph[]> pathTemplates,
                            boolean allowSelfLoops,
                            org.neo4j.gds.RelationshipType mutateRelationshipType,
                            int concurrency,
                            java.util.concurrent.ExecutorService executorService)
    • Method Detail

      • compute

        public org.neo4j.gds.core.loading.SingleTypeRelationships compute()
        Specified by:
        compute in class org.neo4j.gds.Algorithm<org.neo4j.gds.core.loading.SingleTypeRelationships>
      • release

        public void release()
        Specified by:
        release in class org.neo4j.gds.Algorithm<org.neo4j.gds.core.loading.SingleTypeRelationships>