Checks if the given element exists in any set
bool contains(T element) => _nodes.containsKey(element);