Class KShortestPathsProc
- java.lang.Object
-
- org.neo4j.graphalgo.BaseProc
-
- org.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>
-
- org.neo4j.graphalgo.shortestpaths.KShortestPathsProc
-
public class KShortestPathsProc extends org.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>Yen's K shortest paths algorithm. Computes multiple shortest paths from a given start to a goal node in the desired direction. The paths are written to the graph using new relationships named by prefix + index.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKShortestPathsProc.KspResultstatic classKShortestPathsProc.KspStreamResult
-
Constructor Summary
Constructors Constructor Description KShortestPathsProc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.neo4j.graphalgo.AlgorithmFactory<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>algorithmFactory()org.neo4j.graphalgo.api.GraphcreateGraph(org.eclipse.collections.api.tuple.Pair<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig,java.util.Optional<java.lang.String>> configAndName)protected org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfignewConfig(java.lang.String username, java.util.Optional<java.lang.String> graphName, java.util.Optional<org.neo4j.graphalgo.config.GraphCreateConfig> maybeImplicitCreate, org.neo4j.graphalgo.core.CypherMapWrapper config)org.eclipse.collections.api.tuple.Pair<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig,java.util.Optional<java.lang.String>>processInput(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)java.util.stream.Stream<KShortestPathsProc.KspStreamResult>stream(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)java.util.stream.Stream<KShortestPathsProc.KspResult>write(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)-
Methods inherited from class org.neo4j.graphalgo.AlgoBaseProc
algoName, compute, compute, computeEstimate, getOrCreateGraphStore, newConfig, nodeProperties, validateConfigs, validateConfigsAndGraphStore, validateGraphStore
-
-
-
-
Method Detail
-
stream
public java.util.stream.Stream<KShortestPathsProc.KspStreamResult> stream(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)
-
processInput
public org.eclipse.collections.api.tuple.Pair<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig,java.util.Optional<java.lang.String>> processInput(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)- Overrides:
processInputin classorg.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>
-
write
public java.util.stream.Stream<KShortestPathsProc.KspResult> write(java.lang.Object graphNameOrConfig, java.util.Map<java.lang.String,java.lang.Object> configuration)
-
newConfig
protected org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig newConfig(java.lang.String username, java.util.Optional<java.lang.String> graphName, java.util.Optional<org.neo4j.graphalgo.config.GraphCreateConfig> maybeImplicitCreate, org.neo4j.graphalgo.core.CypherMapWrapper config)- Specified by:
newConfigin classorg.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>
-
createGraph
public org.neo4j.graphalgo.api.Graph createGraph(org.eclipse.collections.api.tuple.Pair<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig,java.util.Optional<java.lang.String>> configAndName)
- Overrides:
createGraphin classorg.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>
-
algorithmFactory
protected org.neo4j.graphalgo.AlgorithmFactory<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig> algorithmFactory()
- Specified by:
algorithmFactoryin classorg.neo4j.graphalgo.AlgoBaseProc<org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPaths,org.neo4j.graphalgo.impl.shortestpaths.YensKShortestPathsConfig>
-
-