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
415 stars 115 forks source link

Making graphview work with existing flutter directed/weighted graph data structures #121

Closed matriculus closed 2 months ago

matriculus commented 4 months ago

I have seen the issue of every flutter graphview functionality comes with its own graph data structure and they all lack in crucial functionalities.

GraphView is one of the best I have seen. But rather having a custom graph data structure, if GraphView supports existing directed graph data structures in flutter like https://pub.dev/packages/directed_graph, and add functionalities of weighted edges with arrow thickness, it will be of great help.

I can join the party for this implementation, I know it is a big task. I can put my hand if someone is interested.

nabil6391 commented 4 months ago

I think its quite easy to map from one data structure to another, like how I shown to convert from json to the Graph Nodes. I am more curious if the above packages have implementations for layouting the nodes, which is primarily what this package is focused on.

matriculus commented 4 months ago

Got it. I realised it when trying to replace the graph last night. Makes sense. Especially updating the layout needs functionality which cannot be implemented in standard graph data structures.

Is there a way to implement edge thickness and edge weight here? Just curious.