Arranging nodes in sub-graph

With the sub-graph, we can add nodes in it and make connections among the those nodes. But these nodes are not arranged properly, links are not properly drawn.
Is it possible to arrange the nodes in sub-graph without intersecting the links? I just want to arrange nodes in sub-graph in same way as we can arrange nodes on document using ‘layered layout’(GoLayoutLayeredAction) or tree action but it is for all the nodes on the document. Can we arrange all the nodes in the subgraph using GoLayeredaction or treeaction whenever a node is added in it.

Thanks and regards,

The SubGraphApp has a recursive Layout that does all the subgraphs.