Checks if a node is currently selected.
bool isNodeSelected(String nodeId) => _selectedNodeIds.contains(nodeId);