Ejemplo n.º 1
0
def test_reversedict():
    edges = graphs.graph({'a': set(['b', 'c'])})
    r_edges = graphs.reverse_edges(edges)
    assert r_edges == {'b': ('a',), 'c': ('a',)}
Ejemplo n.º 2
0
def test_reversedict():
    edges = graphs.graph({"a": {"b", "c"}, "b": set(), "c": set()})
    r_edges = graphs.reverse_edges(edges)
    assert r_edges == {"a": set(), "b": {"a"}, "c": {"a"}}
Ejemplo n.º 3
0
def test_reversedict():
    edges = graphs.graph({'a': {'b', 'c'}})
    r_edges = graphs.reverse_edges(edges)
    assert r_edges == {'b': ('a', ), 'c': ('a', )}
Ejemplo n.º 4
0
def test_reversedict():
    edges = graphs.graph({'a': {'b', 'c'}, 'b': set(), 'c': set()})
    r_edges = graphs.reverse_edges(edges)
    assert r_edges == {'a': set(), 'b': {'a'}, 'c': {'a'}}