Skip to content

Commit 87045a4

Browse files
committed
Address client algorithms doc bug
1 parent c21c26b commit 87045a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/asciidoc/pythonclient/python-client-algorithms.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ source_id = gds.find_node_id(["City"], {"name": "New York"})
8484
target_id = gds.find_node_id(["City"], {"name": "Philadelphia"})
8585
8686
res = gds.shortestPath.dijkstra.stream(G, sourceNode=source_id, targetNode=target_id)
87-
assert res[0]["totalCost"] == 100
87+
assert res["totalCost"][0] == 100
8888
----
8989

9090
`gds.find_node_id` takes a list of node labels and a dictionary of node property key-value pairs.

0 commit comments

Comments
 (0)