Gets all output ports for a node.
Returns an empty list if the node doesn't exist.
List<Port> getOutputPorts(String nodeId) { final node = _nodes[nodeId]; return node?.outputPorts.toList() ?? []; }