SkywalkerDarren / flutter_force_directed_graph

Awesome force directed graph for Flutter
BSD 3-Clause "New" or "Revised" License
6 stars 3 forks source link

ForceDirectedGraph.fromJson not working #7

Open tunguyen-zien opened 1 month ago

tunguyen-zien commented 1 month ago

Hi, I'm facing an issue where I cannot generate edges when initializing the graph using the ForceDirectedGraph.fromJson function.

When I use this function to create a graph from a JSON input, the nodes are correctly created and positioned, but the edges between the nodes don't appear to be generated or connected. The JSON structure I'm using includes both nodes and edges, but it seems that the edges are not being properly processed or added to the graph.

SkywalkerDarren commented 1 month ago

Could you please provide a JSON file that reproduces this issue?