neo4j / graph-data-science

Source code for the Neo4j Graph Data Science library of graph algorithms.
https://neo4j.com/docs/graph-data-science/current/
Other
597 stars 157 forks source link

Importing stream mode algorithm developed using pregel to neo4j #186

Closed mohanedmoh closed 2 years ago

mohanedmoh commented 2 years ago

Describe the bug

I'm trying to import the example from the pregel API SSSP algorithm and whenever I import my plugin file (.jar), all algorithms modes are shown in the neo4j database except stream mode.

is there a specific way to import stream modes? To Reproduce

GDS version: 2.0.0 Neo4j version: 4.4.4 Operating system: Windows 10

Steps to reproduce the behavior:

Expected behavior

Additional context

s1ck commented 2 years ago

Hi. Are you building the plugin manually or did you download a packaged GDS jar? As you can see in https://github.com/neo4j/graph-data-science/blob/master/examples/pregel-example/src/main/java/org/neo4j/gds/beta/pregel/sssp/SingleSourceShortestPathPregel.java#L37 the algorithm is annotated with @PregelProcedure and it's configured to generate the STREAM procedure. Did you change something in that file?

all algorithm modes are shown

Do you mean specifically for SSSP?

mohanedmoh commented 2 years ago

hi there, so I figured that if I wanted to export the stream mode I should use the open GDS command, not the usual one ./gradlew:shadowCopy. Thank you for your replay