.. _example_semi_supervised_plot_label_propagation_structure.py:


==============================================
Label Propagation learning a complex structure
==============================================

Example of LabelPropagation learning a complex internal structure
to demonstrate "manifold learning". The outer circle should be
labeled "red" and the inner circle "blue". Because both label groups
lie inside their own distinct shape, we can see that the labels
propagate correctly around the circle.



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




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

.. literalinclude:: plot_label_propagation_structure.py
    :lines: 12-

**Total running time of the example:**  0.33 seconds
( 0 minutes  0.33 seconds)