예제 #1
0
def test_undirected():
    g = Graph(directed=False)
    assert not g.is_directed()
예제 #2
0
def test_directed():
    g = Graph(directed=True)
    assert g.is_directed()