Planar Graph Layouts

前端 未结 2 860
无人及你
无人及你 2020-12-01 17:15

What are some edge overlap minimization techniques when laying out a graph? (Preferably related to GraphViz) Also are there any existing software that can layout a graph in

2条回答
  •  盖世英雄少女心
    2020-12-01 17:22

    The following open source Java library has a couple of algorithms which may help in laying out planar graphs. http://open.trickl.com/trickl-graph/index.html

    In particular, the following classes provide analytic solutions to the problem:

    ChrobakPayneLayout (based on the Boost C++ implementation by Aaron Windsor) http://www.boost.org/doc/libs/1_37_0/libs/graph/doc/straight_line_drawing.html

    FoldFreeLayout (based on Anchor-Free Distributed Localization in Sensor Networks * Nissanka B. Priyantha, Hari Balakrishnan, Erik Demaine, and Seth Teller)

    What you might want to do is use something like this as the first "attempt" which ensures no overlaps, although may not look great. Then you can apply a force-directed algorithm to space out the nodes more fairly.

    Unfortunately, the library has only just been released so is short on documentation. It might however be useful by providing some actual code rather than just theory.

提交回复
热议问题