Network Graph  for Parent Child Relationship
Question
Application Type
Reactive
Service Studio Version
11.50.12 (Build 48233)
Platform Version
11.13.1 (Build 31652)

Hi All,


I need to implement the Data in a Network Graph structure where from one node it will navigate to multiple child nodes and further.

Please find the screenshot like this 


Please let me know whether that can be feasible in Out system  and if so what are the ways to do that.

mvp_badge
MVP

Hello there Ghanashyam,

Do you want to implement a data model that supports multiple child nodes, is that it?


If so, I suggest that you create a recursive model.

Let's say you have an entity Node, where you have your node's information. You can add a ParentNodeId field to Node's entity, pointing to the same entity (ParentNodeId = Node Identifier).

This means that, for each Node record, you will have the information of it's parent node (a child can only have one parent).

If ParentNodeId is null, it means that the node doesn't have a parent, which means that it is a starting node.


On the other hand, you can have multiple nodes pointing to the same Parent, since a parent can have several childs.


Hope that this helps you!


Kind regards,

Rui Barradas

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.