Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Start Node for faster Layouting (Read 2191 times)
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Start Node for faster Layouting
Nov 9th, 2006 at 2:41pm
Print Post  
Stoyan,

Somewhere i read that if i provide the starting node, the spring/grid layout will be much faster.

Please let me know if this is true, and how to achieve that?

Cheers

Phil
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Start Node for faster Layouting
Reply #1 - Nov 10th, 2006 at 5:50am
Print Post  
Hello Phil,

Setting the start and end nodes will improve the grid layout speed only when arranging the graph around the longest path. In that case the control will look for a path only between the specified nodes, which is faster compared to looking for paths between all node pairs.

Stoyan
  
Back to top
 
IP Logged
 
Phil Jacques
Junior Member
**
Offline


.NET 2.0 Rocks!!!

Posts: 70
Joined: Oct 20th, 2006
Re: Start Node for faster Layouting
Reply #2 - Nov 10th, 2006 at 5:52am
Print Post  
Hello Stoyan,

Thanks for your faster reply,
I can set a start node in Spring Layout so that the layouting occurs around that node.

Can i specify this by the root property of the Spring Layout?

Phil
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Start Node for faster Layouting
Reply #3 - Nov 10th, 2006 at 6:20am
Print Post  
Hello Phil,

By setting the SpringLayout.Root property, you specify what subgraph in the diagram to arrange. The subgraph would contain all nodes that can be reached by starting from the root and following the links. If you diagram contains several such unconnected subgraphs, the Root lets you arrange just one of them. There's a chance that the other nodes will be arranged around the root if it's a central node in the subgraph.

Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint