Returning correct node Id.
Every thread starts on a different vertex.