nabil6391 / graphview

Flutter GraphView is used to display data in graph structures. It can display Tree layout, Directed and Layered graph. Useful for Family Tree, Hierarchy View.
MIT License
420 stars 114 forks source link

How to add a directed edge in Tree graph? #42

Closed TimeLord2010 closed 2 years ago

TimeLord2010 commented 3 years ago

I would like to add a directed edge in a tree graph using Buchheim Walker algorithm.

This would be just a standard tree but with directed edges. Is it possible? If so, can a example be provided?

I tried to change the line: algorithm: BuchheimWalkerAlgorithm(builder, TreeEdgeRenderer(builder)), for: algorithm: FruchtermanReingoldAlgorithm(),

and it kinda worked, except that it lost the rectangular edges.

nabil6391 commented 3 years ago

Hm the edge rendering cannot be rectangular for FruchtermanReingoldAlgorithm

I am not sure what you mean a standard tree with directed edges.... maybe you can explain to me with a photo?