Changed to use adjacency_list for temporary graph, avoiding ADL issues with vector_as_graph; fixes #8791