Finding Path between Nodes

Hi,

Can I find the path between any two nodes? Assume I have set up the nodes and links as follows:

Five nodes (“A”, “B”, “C”, “D”, “E”)

“A” To “B”
“B” To “C”
“C” To “D”
“D” To “E”
“A” To “E”

Made up functions for example.

List path = FindNodePath(“A”, “C”)
path = “A”, “B” “C”

List path = FindNodePath(“A”, “E”)
path = “A”, “E”

Thanks
Rich

There aren’t any predefined path-searching methods.

At the model level, you could call IDiagramModel.GetToNodesForNode (or GetConnectedNodesForNode if you don’t care about directionality).

At the diagram level, you could use the Node.NodesOutOf property (or Node.NodesConnected if you don’t care about directionality).