docs: def get_equivalent_nodes(self, node: BaseEntity) -> Set[BaseEntity]:
          """Get a set of equivalent nodes to this node, excluding the given node."""
          if isinstance(node, BaseEntity):
              return set(self.iter_equivalent_nodes(node))
  
          return set(self.iter_equivalent_nodes(node))