How to print adjacency matrix in python