print adjacency matrix row and column headers