Links Ports

I don’t wan’t to reinvent the wheel about this, so I would appreciate if you could help me with some advice.I have two nodes on my GoView, each node has one port and they are connected together(linked), what is the easiest way to get values from nodes about where they are connected to, I’m thinking about using From and To properties.
Thanks

You should use the IGoNode properties. Read the section “Traversing a Diagram” in the User Guide.

You can also run the SubGraphApp sample application and choose each of the "Highlight" options to see the nodes or links connected to a selected node.