set return type for adjacency_matrix()