Circular tree view

I have some data in a tree structure, and I want to represent them graphically, with the root node in the middle of the stage, its children are shifted around the circle, etc. for every child around their parents. I do not want to overlap nodes, so the question is how to optimally arrange the space. Something less or more like alt text(found via google)

What algorithms do I need to look for to implement something like this?

+3
source share
4 answers

, , , , graphviz . , , , . , . !

, .

+2

-, , node ( ), ( , ). node , , , . , , , . ...

+2

. , , wikipedia

: . , , , . , , , . . , .

+1

, . , , .

. - , , , , .

- node . , .

:

1) . 2) , , , . 3) , . . 4) , , , . node, , node, . , node , , - graph_radius * (depth_of_node/maximum_depth)

I found this to give me a very decent and user-friendly distribution, although not very effective in terms of screen usage. I uploaded my tree view animation here: GIF animation

+1
source

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


All Articles