def test_remove_node(): a, b, c, d = 'a', 'b', 'c', 'd' hbug = Hypergraph({0: [a, b], 1: [a, c], 2: [a, d]}) assert a in hbug.nodes assert a in hbug.edges[0] assert a in hbug.edges[1] assert a in hbug.edges[2] hbug.remove_node(a) assert a not in hbug.nodes assert a not in hbug.edges[0] assert a not in hbug.edges[1] assert a not in hbug.edges[2]
def test_remove_node(): a, b, c, d = "a", "b", "c", "d" hbug = Hypergraph({0: [a, b], 1: [a, c], 2: [a, d]}) assert a in hbug.nodes assert a in hbug.edges[0] assert a in hbug.edges[1] assert a in hbug.edges[2] hbug.remove_node(a) assert a not in hbug.nodes assert a not in hbug.edges[0] assert a not in hbug.edges[1] assert a not in hbug.edges[2]