9 Sep
2009
9 Sep
'09
12:06 p.m.
I have a root subgraph from which I create a lot of children subgraphs, that use too much memory. How can I delete the children subgraphs after using them?
There isn't an easy method for erasing subgraphs. However, the subgraph template does declare its list of children (m_children) to be public, so if you have an iterator to the subgraph you want to delete, you can just do sg.m_children.erase(i). Note that children_iterator isn't the same as the iterator type of m_children. I think you can translate to it using children_iterator::base(). Andrew Sutton andrew.n.sutton@gmail.com