network width/height

The engine.
Post Reply
apopescu
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

network width/height

Post by apopescu »

Hello,

Is there a way to find network boundaries (i.e. maxX and maxY)?
I would like to build the network dynamically and add the nodes from multiple xdsl files. The position of those nodes should be specified to avoid adding them all to (0,0) point. This would make the network impossible to read.

Regards,
Adrian
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: network width/height

Post by shooltz[BayesFusion] »

apopescu wrote:Is there a way to find network boundaries (i.e. maxX and maxY)?
Iterate over the nodes, retrieve the position of each node and create the union rectangle.

If you're using C++, then you could use DSL_network::SimpleGraphLayout after adding the nodes at any position. This would use parent ordering to move nodes. GeNIe's exposes this functionality in the Layout|Graph Layout|Parent ordering command. There's also more complex spring embedder layout algorithm (GeNIe only).
Post Reply