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
network width/height
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: network width/height
Iterate over the nodes, retrieve the position of each node and create the union rectangle.apopescu wrote:Is there a way to find network boundaries (i.e. maxX and maxY)?
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).