non deprecated adjacency matrix