subgraph layout working