@property<EOL><INDENT>def hypernym_distances(self):<DEDENT>
retval = dict()<EOL>for (synset, dist) in reduce(<EOL>set.union,<EOL>[[(synset, idx) for (idx, synset) in enumerate(reversed(path))]<EOL>for path in self.hypernym_paths],<EOL>set()):<EOL><INDENT>if synset not in retval or dist < retval[synset]:<EOL><INDENT>retval[synset] = dist<EOL><DEDENT><DEDENT>return set(retval.items())<EOL>
Returns a list of synsets on the path from this synset to the root
node, counting the distance of each node on the way.