I just browsed through the libcgraph graphviz code and I don't see
that there is any obvious API for that. It might be possible to
inspect the graphviz node data structure somehow to get that.
At any rate there is no PyGraphviz function to do that.
You could consider creating a Python dictionary that maps nodes to a
list of subgraphs.
When loading a graph from a file you'd need to recursively traverse
all of the subgraphs to build that though...
Aric
That should probably work well enough for what I need. For what I'm
doing, I don't even need to import from a file, so it should be
relatively simple.
Casey