set_node_attr_w_fcn function

Set node attribute values with a graph function