This sample demonstrates how we can process and get the consecutive nodes and connectors respectively.
We can get the inward connections and outward connections of the node using
outEdges properties of the node. By using this connector’s name collection, we can find the node using
And also, we can get the nodes connected on the connector using
targetNode properties of the connector. method can be used to print the diagrams.