Can't use adjacency_list AND adjacency_matrix in same program