#NEWLINE# def relationship( self , id_ ) : #NEWLINE# #INDENT# ' Fetch a relationship by ID.\n\n        :param id_:\n        ' #NEWLINE# resource = remote ( self ) . resolve ( ( 'relationship/' + str ( id_ ) ) ) #NEWLINE# uri_string = resource . uri . string #NEWLINE# try : #NEWLINE# #INDENT# return Relationship . cache [ uri_string ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# relationship = self . evaluate ( 'MATCH ()-[r]->() WHERE id(r)={x} RETURN r' , x = id_ ) #NEWLINE# if ( relationship is None ) : #NEWLINE# #INDENT# raise IndexError ( ( 'Relationship %d not found' % id_ ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return relationship