moveToGoodPosition replacement function...

   1757   0   1
User Avatar
Member
98 posts
Joined: Sept. 2008
Offline
Dear All,

As part of our research for our skylineEngine system

http//iiia.udg.edu/GGG/skylineEngine/

we have developed a module to help position all the nodes in a network more “nicely”. As you've probably noticed, moveToGoodPosition does an outstanding job for one node or a few nodes, but it does not so well for laying out the whole network at once. So, we've developed a proof-of-concept prototype replacement called moveToBetterPosition (sorry for the pun) which uses pyDot to organize the layout of the nodes in a network. To use it, you have to install pyDot, which in turn requires Graphviz to be installed in your computer. Another drawback of our implementation is that it generates a text file with the node coordinates, as we couldn't find a way to directly extract this info from pyDot. Anyway, remember that this is only a proof-of-concept, not a real module.
Anyway, the overall result is nice, as network layouts are now more evident, without crossings (or as few as possible) and allways top for upstream nodes, to bottom for downstream nodes, which is practical.
For more info, the code is documented, although we are open to answer any question.

We hope you like it.

Any comment will be more than welcome!!!
Thanks a lot for all your help in my past posts.

dagush.-

Attachments:
houMoveToBetterPosition.zip (1.5 KB)

————————-
* skylineEngine project coordinator
* buildingEngine module developer
http//ggg.udg.edu/skylineEngine
  • Quick Links