[Graph] Issue with remove_edge function and subgraphs

According to the online documentation,
http://www.boost.org/doc/libs/1_38_0/libs/graph/doc/subgraph.html
The remove_edge function when used on a subgraph should,
"Remove the edge (u,v) from the subgraph and from all of the ancestors
of g in the subgraph tree."
In the example I have here, it just seems to remove the edge between
vertices 0 and 2 from the ancestor and not the subgraph.
Any advice or explanation would be greatly appreciated.
#include <iostream>
#include <vector>
#include

Hello Marcus, The documentation says that create_subgraph returns subgraph<Graph>&, and in the example it is stored in Graph&.
Graph subG = G.create_subgraph();
this works for me: Graph& subG = G.create_subgraph(); ------- Sergey Mitsyn.
participants (2)
-
Marcus Fontaine
-
Sergey Mitsyn