.. _example_cluster_plot_affinity_propagation.py:



Demo of affinity propagation clustering algorithm
====================================================

Reference:
Brendan J. Frey and Delbert Dueck, "Clustering by Passing Messages
Between Data Points", Science Feb. 2007



.. image:: images/plot_affinity_propagation.png
    :align: center

**Python source code:** :download:`plot_affinity_propagation.py <plot_affinity_propagation.py>`

.. literalinclude:: plot_affinity_propagation.py
    :lines: 11-