Skip to content

Commit 2bcef37

Browse files
authored
Merge pull request #16 from iss-lab/main
Fix access to node properties
2 parents 0defff9 + e19afe6 commit 2bcef37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

getting_started/getting_started.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
],
279279
"source": [
280280
"for result in results:\n",
281-
" print(\"The PageRank of node \", result['node'].properties['id'], \": \", result['rank'])"
281+
" print(\"The PageRank of node \", result['node'].id, \": \", result['rank'])"
282282
]
283283
},
284284
{
@@ -354,7 +354,7 @@
354354
],
355355
"source": [
356356
"for result in results:\n",
357-
" print(\"The betweenness centrality of node \", result['node'].properties['id'], \": \", result['betweenness_centrality'])"
357+
" print(\"The betweenness centrality of node \", result['node'].id, \": \", result['betweenness_centrality'])"
358358
]
359359
},
360360
{

0 commit comments

Comments
 (0)