Lecture Notes in Computer Science Volume 894, 1995, pp 364-375
Date: 01 Jun 2005

A simple and unified method for drawing graphs: Magnetic-spring algorithm

* Final gross prices may vary according to local VAT.

Get Access


A simple and unified heuristic method for nicely drawing directed, undirected and mixed graphs is proposed basing upon a new model called magnetic-spring model which is an extension of Eades's spring model. In the new model, the idea of controlling edge orientations by magnetic forces is employed. Since the method is conceptually intuitive, it is quite easy to understand, implement, tune and improve it. Examples of layouts and results of experiments are shown to demonstrate extensive possibilities of the method.