Force directed Graph Layout
This small page arised from a project in bioinformatics lecture from
Professor V. Helms
at the University of the Saarland.
In bioinformatics there are huge masses of data to handle. On example are networks like
protein interaction networks or
metabolic networks, represented as a graph.
The idea is to find a layout of such a graph, that is
best human readable.
Therefore we apply an algorithm that simulates the graph with the edges being springs
that force the nodes into required distanced and all nodes, causing an repulsive force on all other nodes.
You can download the source code of the python program here if you are interested in the work.
Make sure to have Python and the TK-interface module installed - otherwise it will not work.
The source is free - do with it what ever you like to. Don't hesitate to send me your comments:
How to operate the program
-
Source code: Select the file you want to open at line 18.
-
Executable: Take one of the graph-files (*.dat) and drop it on the exe-file.
-
Press e for displaying the overall energie in the background.
-
Press i for displaying information at the upper left.
-
Drag and drop nodes with the left mouse-button.
-
Drag and drop connected components with the right mouse-button.
-
lock / unlock the position of nodes / connected components with the spacebar while dropping it.