Algorithm for efficiently drawing trees?

前端 未结 2 580
温柔的废话
温柔的废话 2021-02-04 11:58

I need to draw a corporate structure tree (sort-of like a family tree) in C#. All the ancillary code is there. It is colored, interactive, and fancy. The only trouble is the alg

2条回答
  •  生来不讨喜
    2021-02-04 12:43

    There are many good algorithms for drawing trees, each of which shows off some different property of trees. If you want to show off a hierarchy, there is this code for WPF that draws hierarchies. For a more general discussion of how to draw graphs and trees, considering looking at these lecture slides detailing many such algorithms. There's also these excellent slides covering similar material.

    Hope this helps!

提交回复
热议问题