This topic is applicable to both the Node Editor and the Hypershade.
You can rename the nodes in the Node Editor using either of these two methods:
Method 1
Method 2