added constraints to nodes

_minNodes, _maxNodes, _invalidNodes, _validNodes