Organizational Tree Algorithm

I am implementing an organizational tree diagram - from top to bottom or from left to right - in C # and am looking for a good algorithm for drawing a tree. Any recommendations?

thank

Update

I finally had time to work on it, so I wrote my own library for storing and drawing a tree, creating a custom panel, not sure if I was following a certain algorithm, I just wrote my own - back to pen and paper + time :)

I intend to make it open source on codeplex when I finished adding all the features I wanted. Will publish another update after adding it to the code.

thank

+3
source share
5 answers

, , , .

+2

, Silverlight. ItemsControl ( ContainerTemplate StackPanel, ) HierarchicalDataTemplate. , ItemTemplate,

+1

, , Squarified Treemap. , . , , .

http://en.wikipedia.org/wiki/Treemapping

+1

, , - TreeView , , .

http://forums.silverlight.net/forums/p/149065/334501.aspx

, , "", . , , SL:

http://www.nwoods.com/components/silverlight-wpf/goxam-overview.htm http://www.mindfusion.eu/diagramlite.html http://www.syncfusion.com/products/user-interface-edition/silverlight/diagram http://www.yworks.com/en/products_yfilessilverlight_about.html

0

This is the best article I have found on this topic: Controlling drawing a graph tree for wpf

It has a version of WPF and Silverlight. It implements the John Q. Walker II algorithm for positioning nodes and works fine. I still have to work on rotation so that it appears from left to right. Currently only top to bottom.

Additional information about the algorithm can be found here: http://www.cs.unc.edu/techreports/89-034.pdf

0
source

Source: https://habr.com/ru/post/1794722/


All Articles