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!

How to manage subgraph by

"Why do you think that subgraphs are defined by edges? It is quite possible to have"
Because I searched the "subgraph" keyword in the documents and in the sample graphs and just find subgraph in edges. It is so great that the subgraph can be defined in nodes. You solved my problem in a second!
I'll verify this solution tomorrow. Thanks a lot!

How to manage subgraph by

Why do you think that subgraphs are defined by edges? It is quite possible to have
subgraph cluster_c0 {a0 a1}
a0->a1

Recent comments