#NEWLINE# def isCyclic( self ) : #NEWLINE# #INDENT# '\n        Determine if this path is cyclic, to avoid descending down infinite\n        loops.\n\n        @return: a boolean indicating whether this L{Path} is cyclic or not,\n            i.e. whether the L{Idea} its last link points at is the source of\n            any of its links.\n        ' #NEWLINE# if ( len ( x . links ) < 2 ) : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# return ( self . links [ ( - 1 ) ] . target in ( x . source for x in self . links ) )