#NEWLINE# def __hash__( self ) : #NEWLINE# #INDENT# value = 0 #NEWLINE# for entity in self . __nodes : #NEWLINE# #INDENT# value ^= hash ( entity ) #NEWLINE# #UNINDENT# for entity in self . __relationships : #NEWLINE# #INDENT# value ^= hash ( entity ) #NEWLINE# #UNINDENT# return value