      "        graph.add_edge(4, 0, weight=7)\n",
      "        graph.add_edge(5, 4, weight=8)\n",
      "        graph.add_edge(5, 2, weight=9)\n",
      "\n",
      "        assert_equal(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
      "        assert_equal(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
      "        assert_equal(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
      "        assert_equal(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
      "        assert_equal(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
      "        assert_equal(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
      "        assert_equal(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
      "        assert_equal(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
      "        assert_equal(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
      "\n",
      "        assert_equal(graph.nodes[0].incoming_edges, 1)\n",
      "        assert_equal(graph.nodes[1].incoming_edges, 1)\n",
      "        assert_equal(graph.nodes[2].incoming_edges, 2)\n",
      "        assert_equal(graph.nodes[3].incoming_edges, 1)\n",
      "        assert_equal(graph.nodes[4].incoming_edges, 2)\n",
      "        assert_equal(graph.nodes[5].incoming_edges, 2)\n",
      "\n",
      "        graph.nodes[0].remove_neighbor(graph.nodes[1])\n",
      "        assert_equal(graph.nodes[1].incoming_edges, 0)\n",
      "        graph.nodes[3].remove_neighbor(graph.nodes[4])\n",
      "        assert_equal(graph.nodes[4].incoming_edges, 1)\n",
 
</s>
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
      "        graph.add_edge(4, 0, weight=7)\n",
      "        graph.add_edge(5, 4, weight=8)\n",
      "        graph.add_edge(5, 2, weight=9)\n",
      "\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[1].key], 5)\n",
    "        self.assertEqual(graph.nodes[0].adj_weights[graph.nodes[5].key], 2)\n",
    "        self.assertEqual(graph.nodes[1].adj_weights[graph.nodes[2].key], 3)\n",
    "        self.assertEqual(graph.nodes[2].adj_weights[graph.nodes[3].key], 4)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[4].key], 5)\n",
    "        self.assertEqual(graph.nodes[3].adj_weights[graph.nodes[5].key], 6)\n",
    "        self.assertEqual(graph.nodes[4].adj_weights[graph.nodes[0].key], 7)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[4].key], 8)\n",
    "        self.assertEqual(graph.nodes[5].adj_weights[graph.nodes[2].key], 9)\n",
    "\n",
    "        self.assertEqual(graph.nodes[0].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[1].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[2].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[3].incoming_edges, 1)\n",
    "        self.assertEqual(graph.nodes[4].incoming_edges, 2)\n",
    "        self.assertEqual(graph.nodes[5].incoming_edges, 2)\n",
      "\n",
      "        graph.nodes[0].remove_neighbor(graph.nodes[1])\n",
      "        assert_equal(graph.nodes[1].incoming_edges, 0)\n",
      "        graph.nodes[3].remove_neighbor(graph.nodes[4])\n",
      "        assert_equal(graph.nodes[4].incoming_edges, 1)\n",
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 #273: Remove nose dependency for graphs_trees/ (#277)
graphs_trees/graph/graph_solution.ipynb