'Toggle displaying of the relation types for the given synset'

def toggle_synset(self, synset):

    if (synset.name() in self.synset_relations):
        del self.synset_relations[synset.name()]
    else:
        self.synset_relations[synset.name()] = set()
    return self
