why the vertexs are swaying when the graph drawing?

Nov 5, 2009 at 3:01 PM


  when i open a file ,the vertexs are swaying and adjust the p[osition. but if the file is  large,the swaying waste too mang time.

 how can i take out the swaying in the code?


Nov 5, 2009 at 3:37 PM

The vertices are swaying because they are being laid out by the Fruchterman-Reingold algorithm, which is iterative.  Each iteration usually improves the quality of the layout, which is why NodeXL uses 10 iterations by default.

You can lower the number of Fruchterman-Reingold iterations by clicking the Options button at the top of the graph pane, then clicking the Layout button.  Keep in mind that a lower number may give you a poorer layout.

You can also select a different layout by going to NodeXL, Graph, Layout in the Excel ribbon.  The Harel-Koren Fast Multiscale layout algorithm uses only one iteration and is designed to work quickly with large graphs.  It does not sway.

-- Tony