diff --git a/CHANGELOG.md b/CHANGELOG.md index 86e9ebc8c97..8d8bd4a7e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/notebooks/traversal/BFS.ipynb b/notebooks/traversal/BFS.ipynb index faee4d92ab3..8c608b782f2 100755 --- a/notebooks/traversal/BFS.ipynb +++ b/notebooks/traversal/BFS.ipynb @@ -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" @@ -227,7 +227,7 @@ "metadata": {}, "outputs": [], "source": [ - "df2[\"distance\"][0]" + "df2[\"distance\"].iloc[0]" ] }, {