Add node_weight parameter to allow setting a node's Weight value