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

Loopback and backward direction support #79

Open decamel opened 2 years ago

decamel commented 2 years ago

It would be greate if this library could support such structure of graph. image

nabil6391 commented 2 years ago

Can you share some usecase?

decamel commented 2 years ago

@nabil6391 Unfortunately I can not provide you a great example. I was wondering how I can visualize Mealy machine state transitions and met some problems when I made next thing:

***
  @override
  void initState() {
    final node1 = Node.Id(1);
    final node2 = Node.Id(2);

    graph.addEdge(node1, node2);
    graph.addEdge(node2, node1);
  }
***

And also Mealy machine have some rules which do not changes state. In this case I had to make this:

    graph.addEdge(node1, node1);