Gets a node by its ID.
Returns null if the node doesn't exist.
null
Parameters:
nodeId
Returns the node if found, otherwise null.
Node<T>? getNode(String nodeId) => _nodes[nodeId];