#NEWLINE# def __gt__( self , node ) : #NEWLINE# #INDENT# if ( not isinstance ( node , ClusterNode ) ) : #NEWLINE# #INDENT# raise ValueError ( "Can't compare ClusterNode to type {}" . format ( type ( node ) ) ) #NEWLINE# #UNINDENT# return ( self . dist > node . dist )