Skip to content

Commit

Permalink
Merge pull request rapidsai#852 from BradReesWork/branch-0.14
Browse files Browse the repository at this point in the history
[REVIEW] Fix BFS Notebook
  • Loading branch information
BradReesWork authored May 6, 2020
2 parents 6113b7e + 55517aa commit 5879040
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
- PR #827 Fix indexing CI errors due to cudf updates
- PR #844 Fixing tests, converting __getitem__ calls to .iloc
- PR #851 Removed RMM from tests

- PR #852 Fix BFS Notebook

# cuGraph 0.13.0 (Date TBD)

Expand Down
8 changes: 4 additions & 4 deletions notebooks/traversal/BFS.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@
" \n",
" # Use the BFS predecessors and distance to trace the path \n",
" # from vertex id back to the starting vertex ( vertex 1 in this example)\n",
" dist = df['distance'][id]\n",
" dist = df['distance'].iloc[id]\n",
" lastVert = id\n",
" for i in range(dist):\n",
" nextVert = df['predecessor'][lastVert]\n",
" d = df['distance'][lastVert]\n",
" nextVert = df['predecessor'].iloc[lastVert]\n",
" d = df['distance'].iloc[lastVert]\n",
" print(\"Vertex: \" + str(lastVert) + \" was reached from vertex \" + str(nextVert) + \n",
" \" and distance to start is \" + str(d) )\n",
" lastVert = nextVert"
Expand Down Expand Up @@ -227,7 +227,7 @@
"metadata": {},
"outputs": [],
"source": [
"df2[\"distance\"][0]"
"df2[\"distance\"].iloc[0]"
]
},
{
Expand Down

0 comments on commit 5879040

Please sign in to comment.