#NEWLINE# def AffinityPropagation( self , show = True ) : #NEWLINE# #INDENT# '\n        Clusters objects in `dismat` using affinity propagation algorithm.\n\n        :param show: Shows the resulting clusters if true.\n        :type n_clusters: boolean, optional\n        ' #NEWLINE# model = AffinityPropagation ( affinity = 'precomputed' ) . fit ( self . dismat ) #NEWLINE# self . _cls = self . labels_ #NEWLINE# if show : #NEWLINE# #INDENT# return self . cls