def test_1():
    if PRINT :
        print ">>> test_1: Begin"

    g = Graph()
    for i in range(6):
        g.node(i)

    g.edge(0, 1, attributs={'weight':5})
    g.edge(0, 5, attributs={'weight':2})
    g.edge(1, 2, attributs={'weight':4})
    g.edge(2, 3, attributs={'weight':9})
    g.edge(3, 4, attributs={'weight':7})
    g.edge(3, 5, attributs={'weight':3})
    g.edge(4, 0, attributs={'weight':1})
    g.edge(5, 4, attributs={'weight':8})
    g.edge(5, 2, attributs={'weight':1})

    if PRINT :
        for v in g:
            for w in v.getConnections():
                print("( %s , %s )" % (v.ID, w.ID))
        print "<<< test_1: End"
# ...

# ...
dataset/ETHPy150Open ratnania/fortlint/tests/test_graph.py/test_1/original