24
Views
2
Comments
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.

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

Hi Ghanshyam,

Did you get the solution to implement this network graph structure? I  have same requirement to show customer orders/suborders in hierarchy.

I have DB structure with one parent order and multiple sub orders. 

Can you please help how to create this type of graph?

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