Assigns default name to unnamed nodes.