Not sure about removeConnection(), but I usually abstract all connection configs as XML. When needed, I call graph->clear() to wipe them before I traverse my XML data for new/modified connections. I’m using more or less the same code as used in the host demo for loading and unload patches. I just removed the bits I didn’t need.

That’s right. Before I make any life changing modifications I just grab a snapshot in XML. It was more of a diagnostic thing when I started, but it worked so well I decided to see how it would fair in managing my graph. So far so good but I’m dealing with rather simple graphs. I’ve no idea how well this would work with a graph of 20 or more nodes.

Update: This seems to only be partially working, and unreliable; looping through all connections and called removeConnection only seems to work some of the time. So I’ve gone back to my hack of exposing the connections array for now.

I’ll try and get a basic example project together to show the issue, when I get some spare time…