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 114 forks source link

create family tree view using BuchheimWalkerAlgorithm? #51

Open VengaiMovan opened 2 years ago

VengaiMovan commented 2 years ago

Hi Brother!, I'm creating a family tree using BuchheimWalkerAlgorithm, it is possible to get this type of output with separate nodes. Like father mother on the different node but nearest position. Connect from 2 nodes to 1 node. Screenshot_1630301227

Help me to find out. Thank You!

nabil6391 commented 2 years ago

This is not possible at the moment sadly.

iamhiutrun commented 2 years ago

@VengaiMovan you can custom a node that included 2 members like that instead of thinking about connecting 2 nodes to 1 node

NeonPokharkar commented 2 years ago

Same issue here, please add this feature

martesabt commented 2 years ago

Same here, hope this feature will be implemented soon.

nabil6391 commented 2 years ago

Better to do what @iamhiutrun suggested, as data wise I want to make generic nodes only, without any child or spouse relation

jander96 commented 11 months ago

I have same problem here. Imposible connect to parents to one child. I suggest you this solution, you can get similar behavior but level of generations have problems


final treeRender = BuchheimWalkerConfiguration()
      ..subtreeSeparation = (4)
      ..orientation = (BuchheimWalkerConfiguration.ORIENTATION_TOP_BOTTOM)
      ..levelSeparation = (28);

    final configuration = SugiyamaConfiguration()
      ..bendPointShape = MaxCurvedBendPointShape()
      ..nodeSeparation = (16)
      ..coordinateAssignment = CoordinateAssignment.Average;

    final sugiyama =  SugiyamaAlgorithm(configuration,)
      ..renderer = TreeEdgeRenderer(treeRender)
      ..graph = graph;
Sternbach-Software commented 6 months ago

@nabil6391 @iamhiutrun That approach does not solve it, because each spouse has their own tree of ancestors. Even if both spouses were in a single node, that node would still need multiple ancestors (4 grandparents). That approach just "kicks the can down the road".

NALAWALAMURTUZA commented 3 weeks ago

any solution for that.