adjacency matrix of ladder graph