def test_undirected(): g = Graph(directed=False) assert not g.is_directed()
def test_directed(): g = Graph(directed=True) assert g.is_directed()