Adjacency Matrix Of A Graph In Python