Check if a node exists (by id)
@override bool nodeExists(String nodeId) { return _nodes .where((node) => node.id == nodeId) .isNotEmpty; }