Graph Representation In Python