Closed Mintactus closed 3 hours ago
Hi again @Mintactus,
Can you try G = gds.graph.get("eurusd") and use G to run the randomWalk?
The graph
in your instance corresponds to the projection result which is not necessarily the graph object. Doing the line above should help.
Also, make sure to check florentin's reply to your other thread bypass creating a disk graph.
Best regards, Ioannis.
Thanks Ioannis
You were certainly right, I did some reseach and I felt into a sneaky trap of python beginner:
"""In Python, when a function returns multiple values, it actually returns a tuple containing those values. If you only assign one variable to receive the return value, you'll get the entire tuple assigned to that variable"""
gds.graph.project does return two things as a tuple, and the tuple won't be the graph object needed by the algos, so i can assign tow variables to get its return right. graph, result = gds.graph.project() like said in the neo4j doc
I will test both soon :)
As a tip, I can also recommend using mypy to find out such problems.
Also our API docs contain the GraphCreateResult (see https://neo4j.com/docs/graph-data-science-client/1.12/api/graph_create_result/).
Its actually a named tuple, thats why you can use result.graph
as well
Thanks guys, I will mark the issue as closed.
Neo4j 5.25.1 GDS 2.12 GDS Python Client 1.12
This is a shitshow, I have been stuggeling to make a simple projection works since hours and I never had a problem like that, something is wrong with GDS 2.12.
I'm also the one who wrote the "GDS - RandomWalk - Unable to load NODE" post. I hink both problems could be linked.
This is the call I used
If you need anything else let me know
Thanks for your support