Auto layout objects in SwimLane (NodeLinkDemo Example)

In this example, once add a node to SwimLane, we have to set position for that node. I want to automatically layout nodes in swimlane without pre-defining their position.

Thank You in advance.

Swimlanes uses subgraphs, so you have to do the layout on each subgraph separately. LayoutDemo has a sample of how to do this.