From 8dbd43207d1d0151ec597334a7110fe4ac5e78fa Mon Sep 17 00:00:00 2001 From: Klemens Reuther Date: Thu, 30 May 2024 15:51:54 +0200 Subject: [PATCH] When creating subgraphs on deeper levels of the subgraph tree, do not interpret the vertex descriptors as global, but instead as vertex descriptors to the current graph. --- include/boost/graph/subgraph.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/graph/subgraph.hpp b/include/boost/graph/subgraph.hpp index 7f8bd809e..53e003889 100644 --- a/include/boost/graph/subgraph.hpp +++ b/include/boost/graph/subgraph.hpp @@ -194,7 +194,7 @@ template < typename Graph > class subgraph m_children.back()->m_parent = this; for (; first != last; ++first) { - add_vertex(*first, *m_children.back()); + add_vertex(local_to_global(*first), *m_children.back()); } return *m_children.back(); }