The number of inputs is defined in the template type, eg TSwitchNode is a switch node with 3 possible inputs. Dynamic number of inputs cannot be easily supported without changes at the graph evaluation level.