def METHOD_NAME(idtype):
    g = create_graph(idtype, 5)
    for i in range(5):
        g.add_edges(i, i)
        g.add_edges(i, i)
    assert g.num_nodes() == 5
    assert g.num_edges() == 10
    # remove edges
    g.remove_edges([2, 3])
    assert g.num_nodes() == 5
    assert g.num_edges() == 8
    # add edges
    g.add_edges(1, 1)
    g.add_edges(1, 1)
    assert g.num_nodes() == 5
    assert g.num_edges() == 10
    # remove edges
    g.remove_edges([0, 1])
    assert g.num_nodes() == 5
    assert g.num_edges() == 8