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
gds.degree.stream not respecting orientation? #181
Comments
Hi @bSharpCyclist, The Python code What's the code for parsing the result of the Python call to Adam |
Hi @adamnsch Thanks for the response. In the dataframe that is returned from gds.degree.stream there is a column of nodeIds, and a score column of all zeros, which what I would suspect for that direction of the relationship. Events are unique and will only point to one Search configuration node, but a Search node can have many edges coming into it. After using gds.util.asNode(nodeId) on one of the nodeIds and taking a look at that result, I can see that the node is an Event node. |
Ok, thanks for your reply. When calling Adam |
OMG facepalm, I just assumed they were all event nodes. That's exactly it 😊 Thanks!! |
Describe the bug
I'm trying to reproduce a similar result that I would get in GDS.
To Reproduce
Cypher code:
The above returns the Search nodes.
Python code:
degree.stream above is returning the node ids of the Event nodes (other side of direction), even if I were to use G = gds.graph.get("xdc-test-search") and use the projection created with cypher.
I'm sure it's something I'm doing on my end :)
graphdatascience library version: 1.3
GDS plugin version: 2.1.7
Python version: 3.9.12
Neo4j version: 4.4.10
Operating system: macOS 12.6
The image below is what I would expect from the python approach.
The text was updated successfully, but these errors were encountered: