How to get all Edges connected to a Port of a GraphView Node?

I want to iterate through a node graph, but the Port class doesn’t seem to have a property for outgoing edges? It has an EdgeConnector object that I can access, but this doesn’t seem to have access to the actual edge (its target property just gets me the port again).

How do I get a list of edges connected to a port?

Ok, I figured it out. For anyone else wondering the same thing:

The solution was the Port.connections property, which returns an IEnumerable representing all edges connected to a port. You can loop through this with a foreach loop. The Edge.input property then gets you the connected input port of the next node (whereas Edge.output represents the output port of the node you just came from).