      "class TestPathExists(object):\n",
      "\n",
      "    def test_path_exists(self):\n",
      "        nodes = []\n",
      "        graph = Graph()\n",
      "        for id in range(0, 6):\n",
      "            nodes.append(graph.add_node(id))\n",
      "        graph.add_edge(0, 1, 5)\n",
      "        graph.add_edge(0, 4, 3)\n",
      "        graph.add_edge(0, 5, 2)\n",
 
</s>
    "        graph = GraphPathExists()\n",
      "class TestPathExists(object):\n",
      "\n",
      "    def test_path_exists(self):\n",
      "        nodes = []\n",
    "        graph = GraphPathExists()\n",
      "        for id in range(0, 6):\n",
      "            nodes.append(graph.add_node(id))\n",
      "        graph.add_edge(0, 1, 5)\n",
      "        graph.add_edge(0, 4, 3)\n",
      "        graph.add_edge(0, 5, 2)\n",
keep keep keep keep replace keep keep keep keep keep
 Move graph path exists to a class
graphs_trees/graph_path_exists/path_exists_solution.ipynb