Hi @anjo, yes it does seem complex, but that’s simply because of the structure of the data it is intepreting from the XML file.
The workflow can be broken down into the following sections:
1 - read the XML file into a table
2 - derive the set of nodes
3 - derive the set of connections
4 - determine which nodes each node connects to (both in and out)
5 - walk the connections, to determine sequence
I hope it helps with what you need.