Wouldn't it be possible to achieve this using a ContainerGraph?
I'm thinking of something like this:
var container =
// Set up container somehow...
I'm not sure how I would set up the container, but adding all connected
nodes would be a first step. Ideas?