def test_out_edges(self): g = Graph([v, w, x], [vw, vx]) assert sorted(g.out_edges(v)) == sorted([vw, vx]) assert g.out_edges(w) == [vw, ] assert g.out_edges(x) == [vx, ]
def test_out_edges_none(self): g = Graph() assert [] == g.out_edges(v)