def isCyclic(self):
        if len(self.links) < 2:
            return False
        return (self.links[-1].target in (x.source for x in self.links))
Determine if this path is cyclic, to avoid descending down infinite
dataset/ETHPy150Open twisted/imaginary/imaginary/idea.py/Path.isCyclic