Layout Option for user

Hi Support ,
i need to create a diagram with different layouts option. user should have option to view diagram by selected layout option. when user select any option diagram should be appear in that layout. Example - if user selected tree-layout option diagram should be appear in tree-layout, if user select Orthogonal Layout diagram should be appear in that layout. like that.
" i don’t see any demo for that." if you have any demo can you please send me that demo, or else if you have any suggestion, please suggest me.

Thanks .

The Fishbone layout extension’s sample shows how to change the diagram’s layout by clicking on different buttons. See the layout...() functions.

Thanks for valuable information.