ENgetlinknodes function

Retrieve the index of the end nodes of a link