How to manage subgraph by nodes rather than by edges?

Most of output of graph partition algorithm is sub graphs which is based on node( or vertex) group. An example is subgraph1:{a0, a1,a3}, subgraph:{a4,a5}.

However, the subgraph in graphviz is defined by edges. e.g.:
subgraph cluster_c0 {a0 -> a1;}

Is it possible to draw a graph with subgraphs which are defined by nodes?
Thanks a lot!

Recent comments

Syndicate content