Enhanced topology support for node ordering handling.

* Added function to get the name of a node based on the ordering among its neighbours