How to re-allign a gojs flow chart?

Walter,

This is not what i am looking for.

I want my GoJS original flowchart to be aligned (as shown in picture), upon some button click, after the user has created the flowchart.

I tried setting the layout as LayeredDigraphLayout, but that didn’t work for me.