def METHOD_NAME(self):
    g = OrderedMultiDiGraph()
    e0 = g.add_edge(0, 3, "abc")
    e1 = g.add_edge(0, 3, "def")
    e2 = g.add_edge(0, 3, "ghi")
    e3 = g.add_edge(0, 3, "jkl")
    g.add_edge(0, 4, "mno")
    g.add_edge(4, 3, "pqr")
    self.assertEqual(g.number_of_nodes(), 3)
    self.assertEqual(g.number_of_edges(), 6)
    self.assertEqual(g.in_degree(0), 0)
    self.assertEqual(g.in_degree(3), 5)
    self.assertEqual(g.out_degree(0), 5)
    nodes = list(g.nodes())
    edges = list(g.edges())
    self.assertEqual(nodes[0], 0)
    self.assertEqual(nodes[1], 3)
    self.assertEqual(nodes[2], 4)
    self.assertEqual(edges[0], e0)
    self.assertEqual(edges[1], e1)
    self.assertEqual(edges[2], e2)
    self.assertEqual(edges[3], e3)
    g.remove_edge(e2)
    self.assertEqual(g.number_of_nodes(), 3)
    self.assertEqual(g.number_of_edges(), 5)
    self.assertEqual(g.in_degree(0), 0)
    self.assertEqual(g.in_degree(3), 4)
    self.assertEqual(g.out_degree(0), 4)
    edges = list(g.edges())
    self.assertEqual(edges[0], e0)
    self.assertEqual(edges[1], e1)
    self.assertEqual(edges[2], e3)
    g.remove_node(4)
    self.assertEqual(g.number_of_nodes(), 2)
    self.assertEqual(g.number_of_edges(), 3)
    self.assertEqual(g.in_degree(3), 3)
    self.assertEqual(g.out_degree(0), 3)
    self.assertEqual(len(edges[0]), 3)
    h = OrderedMultiDiGraph()
    e0 = h.add_edge(0, 1, None)
    e1 = h.add_edge(0, 2, None)
    e2 = h.add_edge(1, 3, None)
    e3 = h.add_edge(3, 4, None)
    e4 = h.add_edge(1, 5, None)
    e5 = h.add_edge(2, 6, None)
    e6 = h.add_edge(6, 7, None)
    e7 = h.add_edge(6, 8, None)
    e8 = h.add_edge(2, 6, None)
    bfs_edges = h.bfs_edges(0)
    self.assertEqual(next(bfs_edges), e0)
    self.assertEqual(next(bfs_edges), e1)
    self.assertEqual(next(bfs_edges), e2)
    self.assertEqual(next(bfs_edges), e4)
    self.assertEqual(next(bfs_edges), e5)
    self.assertEqual(next(bfs_edges), e8)
    self.assertEqual(next(bfs_edges), e3)
    self.assertEqual(next(bfs_edges), e6)
    self.assertEqual(next(bfs_edges), e7)