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

  • Kozo Sugiyama
  • Kazuo Misue
Conference paper
Part of the Lecture Notes in Computer Science book series (LNCS, volume 894)


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.


  1. [1]
    N. Quinn and M. Breur: A force directed component placement procedure for printed circuit boards, IEEE Trans. Circuits and Systems, CAS-26(6), 377–388, (1979).Google Scholar
  2. [2]
    P. Eades: A heuristic for graph drawing, Congressus Numerantium 42, 149–160, (1984).Google Scholar
  3. [3]
    T. Kamada: On visualization of abstract objects and relations, Dr. S. thesis, Univ. of Tokyo, (1988).Google Scholar
  4. [4]
    T. Fruchterman and E. Reingold: Graph drawing by force-directed placement, Software — Practice and Experience 21(11), 1129–1164, (1991).Google Scholar
  5. [5]
    M. J. Bickerton: A practitioner's handbook of requirement engineering methods and tools, Oxford Univ., (1992).Google Scholar
  6. [6]
    K. Sugiyama and K. Misue: Graph Drawing by Magnetic-Spring Model, Res. Rep. ISIS-RR-94-14E, Inst. Social Information Science, Fujitsu Labs. Ltd., 32p., (1994).Google Scholar
  7. [7]
    P. Eades: Drawing free trees, Res. Rep. IIAS-RR-91-17E, Intern. Inst. for Advanced Study of Social Information Science, Fujitsu Lab. Ltd., 29p., (1991).Google Scholar
  8. [8]
    P. Creszenzi, G. Di Battista and A. Piperno: A note on optimal area algorithms for upward drawings of binary trees, J. Computational Geometry, 2(4), 187–200, (1992).Google Scholar
  9. [9]
    M. G. Reggiani and F. E. Marchetti: A proposed method for representing hierarchies, IEEE Trans. Systems, Man, and Cybernetics SMC-18(1), 2–8, (1988).Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 1995

Authors and Affiliations

  • Kozo Sugiyama
    • 1
  • Kazuo Misue
    • 1
  1. 1.Institute for Social Information ScienceFujitsu Laboratories LimitedShizuokaJapan

Personalised recommendations