-
Notifications
You must be signed in to change notification settings - Fork 493
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2402: See if we can make the aStar algorithm support spatial points #2589
Conversation
…ort spatial points
@Context | ||
public GraphDatabaseService db; | ||
|
||
@Context | ||
public Transaction tx; | ||
|
||
@Procedure | ||
@Description("apoc.algo.aStarWithPoint(startNode, endNode, 'relTypesAndDirs', 'distance','pointProp') - " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have started to be stricter about what will be added into APOC core. Would it be possible to add this into APOC full instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes sure, I just moved it in full
@@ -45,8 +94,8 @@ public Stream<WeightedPathResult> aStar( | |||
} | |||
|
|||
@Procedure | |||
@Description("apoc.algo.aStar(startNode, endNode, 'KNOWS|<WORKS_WITH|IS_MANAGER_OF>', {weight:'dist',default:10," + | |||
"x:'lon',y:'lat'}) YIELD path, weight - run A* with relationship property name as cost function") | |||
@Description("apoc.algo.aStarConfig(startNode, endNode, 'KNOWS|<WORKS_WITH|IS_MANAGER_OF>', {weight:'dist',default:10," + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch that this description was wrong 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As far as I can judge, this looks OK
…oints (#2589) (#2786) Co-authored-by: Giuseppe Villani <[email protected]>
…oints (#2589) (#2785) No AUTO Co-authored-by: Giuseppe Villani <[email protected]>
…oints (#2589) (#2814) No AUTO Co-authored-by: Giuseppe Villani <[email protected]>
Fixes #2402
Added config 'pointPropName' in
apoc.algo.aStarConfig
procedure.Extracted code from org.neo4j.graphalgo.impl.util.GeoEstimateEvaluator