rescale_node_attrs function

Rescale numeric node attribute values