Hello Nikifor Ostanin,
I understand that when you are trying to visualize the relations in the graph, you are encountering unwanted nodes in the graphical visualization.
To remove these unwanted nodes, kindly use the following relation order:
datatable(nodeId: string, SourceId: string, targetId: string)
[
"node1", "", "node1",
"node2","node1","node2",
"node3","node2","node3",
"node4", "", "node4",
"","node4","node3",
"node5", "node1", "node5",
"","node5","node3"
]
I have reproduced the issue in my environment and got the same visualization order as you expected.
Please find the below evidence for your reference.
Output:
If the provided solution works for your query, please do not forget to click Upvote Button. this can be beneficial to other community members.it would be greatly appreciated and helpful to others
Thanks