      "        graph.add_edge(1, 4, 4)\n",
      "        graph.add_edge(2, 1, 6)\n",
      "        graph.add_edge(3, 2, 7)\n",
      "        graph.add_edge(3, 4, 8)\n",
      "        bfs(nodes[0], self.results.add_result)\n",
      "        assert_equal(str(self.results), \"[0, 1, 4, 5, 3, 2]\")\n",
      "\n",
      "        print('Success: test_bfs')\n",
      "\n",
      "\n",
 
</s>
    "        graph.bfs(nodes[0], self.results.add_result)\n",
      "        graph.add_edge(1, 4, 4)\n",
      "        graph.add_edge(2, 1, 6)\n",
      "        graph.add_edge(3, 2, 7)\n",
      "        graph.add_edge(3, 4, 8)\n",
    "        graph.bfs(nodes[0], self.results.add_result)\n",
      "        assert_equal(str(self.results), \"[0, 1, 4, 5, 3, 2]\")\n",
      "\n",
      "        print('Success: test_bfs')\n",
      "\n",
      "\n",
keep keep keep keep replace keep keep keep keep keep
 Move graph bfs to a class
graphs_trees/graph_bfs/bfs_solution.ipynb