tinkerpop icon indicating copy to clipboard operation
tinkerpop copied to clipboard

adding multi source djikstra algorithm

Open nikita15p opened this issue 2 years ago • 4 comments

Signed-off-by: nikita15p [email protected]

nikita15p avatar Jun 08 '22 06:06 nikita15p

Codecov Report

Merging #1688 (d4d3ecc) into master (53c9cbb) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #1688   +/-   ##
=======================================
  Coverage   63.84%   63.84%           
=======================================
  Files          23       23           
  Lines        3596     3596           
=======================================
  Hits         2296     2296           
  Misses       1137     1137           
  Partials      163      163           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 53c9cbb...d4d3ecc. Read the comment docs.

codecov-commenter avatar Jun 08 '22 06:06 codecov-commenter

thanks for offering this. here's some general comments:

  1. This looks mostly like a copy/paste of the existing ShortestPathVertexProgram with some minor change to collectShortestPaths(). is that the only change? If it is, is then I think you'd want to rethink how this is implemented so that you could offer this new functionality and make better re-use of existing code.
  2. For an "algorithm" I wouldn't typically be in favor of accepting a PR with just the VertexProgram implementation. We would want it accessible from Gremlin as we do with other algorithms which could mean a Gremlin language change (maybe?) which would in turn require some discussion. That's just my opinion though...perhaps others would have different feeling.
  3. Tests?
  4. There's more administrative things to bring up (like documentation), if this were to be considered for merge, but that can all be saved for a later when the bigger items already listed are more settled.

spmallette avatar Jun 10 '22 11:06 spmallette

@spmallette thanks for comments. So this functionality offers multi source djikstra algorithm and it leverages shortestPath code...So shall I be imporing ShortestPathVertexProgram methods then?

nikita15p avatar Jun 22 '22 10:06 nikita15p

I'm not sure what you mean by:

So shall I be imporing ShortestPathVertexProgram methods then?

spmallette avatar Jun 24 '22 17:06 spmallette

closing this PR as there hasn't been any activity on it. if you're still interested in it, please feel free to open a new one with the feedback provided addressed.

spmallette avatar Aug 25 '22 10:08 spmallette