Adjacency Matrix Directed Graph Python