addInputPort method
Adds an input port to an existing node.
Does nothing if the node with nodeId doesn't exist.
Parameters:
nodeId: The ID of the node to add the port toport: The port to add
Implementation
void addInputPort(String nodeId, Port port) {
final node = _nodes[nodeId];
if (node == null) return;
node.addInputPort(port);
}