code: def circular_references(self) -> Set[str]:
          
          rval = set()
          for k in self.grammarelts.keys():
              if k in self.dependency_closure(k):
                  rval.add(k)
          return rval
docs: Return the set of recursive (circular) references
          :return: