Perform less copy constructors in the code to get a name from a node id.