Links connected to one specific node

Hi all.
I am using MATLAB and the EPANET Toolkit.

I would like to find all the links connected to a specified node.
For example:
Node under consideration: Node 2
Links connected to node 2 = 1,2,3.
Node under consideration: Node 3
Links connected to node 3 = 1,4,5.
and so on.

Thank you

Hi @EthanPillay,

Please check here:

Regards,
Marios

Thank you @Mariosmsk

This helped me a lot.