I would like to implement an editor for dialogue trees with mxGraph.
I started out with the workfloweditor example [1] and try to customize the code to my needs. Drawing the graph using the subprocess template as nodes and directed connectors works perfectly. However, the graph hierarchy seems to be missing: The tooltip always shows "Children: 0", no matter how many nodes I connect. Same happens in the original sample code.
How can I explicitly configure the graph to follow a hierarchical parent-children layout?
[1] https://jgraph.github.io/mxgraph/javascript/examples/editors/workfloweditor.html