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 inEdges and outEdges properties of the node. By using this connector’s name collection, we can find the node using getObject. And also, we can get the nodes connected on the connector using sourceNode and targetNode properties of the connector. method can be used to print the diagrams.