ENgetnodeindex function

Retrieve the index of a node