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

Nodes and edges not rendering correctly when generated dynamically. #28

Closed DroidSU closed 3 years ago

DroidSU commented 3 years ago

Hello, thanks for this great package. Just a little query though. The package works great when the nodes and edges are created statically, but the edges are created one over another when the nodes and edges are created inside a for loop. Maybe I am missing something, can you please demonstrate how to create the nodes and edges dynamically and update the documentation. Will be of so much help. Thanks.

nabil6391 commented 3 years ago

Hi, which algorithm are you using?

DroidSU commented 3 years ago

Hi, which algorithm are you using?

I am using the BuchheimWalkerAlgorithm algorithm with TreeEdgeRenderer. FYI, i keep getting the error depth() was called on null

nabil6391 commented 3 years ago

@DroidSU did u fix the issue?

DroidSU commented 3 years ago

@DroidSU did u fix the issue?

No sir, I abandoned the idea for a simpler solution. Not exactly working on this.