.. _examples:

Examples
========

.. tip::

    The following code examples are included in the ``examples/`` directory of the
    `source repository/distribution <examples directory_>`_. 

.. note::

    Most of them recreate examples from the
    `graphviz.org gallery`_ or the `graphviz.org documentation`_.

.. include:: _links.rst


hello.py 
--------

.. literalinclude:: ../examples/hello.py
    :lines: 3-

.. image:: _static/hello.svg
    :align: center


process.py
----------

.. literalinclude:: ../examples/process.py
    :lines: 3-

.. image:: _static/process.svg
    :align: center


fsm.py
------

.. literalinclude:: ../examples/fsm.py
    :lines: 3-

.. image:: _static/fsm.svg
    :align: center


.. _cluster.py:

cluster.py
----------

.. literalinclude:: ../examples/cluster.py
    :lines: 3-

.. image:: _static/cluster.svg
    :align: center


er.py
-----

.. literalinclude:: ../examples/er.py
    :lines: 3-

.. image:: _static/er.svg
    :align: center


unix.py
-------

.. literalinclude:: ../examples/unix.py
    :lines: 3-

.. image:: _static/unix.svg
    :align: center


structs.py
----------

.. literalinclude:: ../examples/structs.py
    :lines: 3-

.. image:: _static/structs.svg
    :align: center


structs_revisited.py
--------------------

.. literalinclude:: ../examples/structs_revisited.py
    :lines: 3-

.. image:: _static/structs_revisited.svg
    :align: center


.. _btree.py:

btree.py
--------

.. literalinclude:: ../examples/btree.py
    :lines: 3-

.. image:: _static/btree.svg
    :align: center


traffic_lights.py
-----------------
.. literalinclude:: ../examples/traffic_lights.py
    :lines: 3-

.. image:: _static/traffic_lights.svg
    :align: center


fdpclust.py
-----------
.. literalinclude:: ../examples/fdpclust.py
    :lines: 3-

.. image:: _static/fdpclust.svg
    :align: center


cluster_edge.py
---------------
.. literalinclude:: ../examples/cluster_edge.py
    :lines: 3-

.. image:: _static/cluster_edge.svg
    :align: center


g_c_n.py
--------
.. literalinclude:: ../examples/g_c_n.py
    :lines: 3-

.. image:: _static/g_c_n.svg
    :align: center


angles.py
---------
.. literalinclude:: ../examples/angles.py
    :lines: 3-

.. image:: _static/angles.svg
    :align: center


.. _rank_same.py:

rank_same.py
------------
.. literalinclude:: ../examples/rank_same.py
    :lines: 3-

.. image:: _static/rank_same.svg
    :align: center


colors.py
---------
.. literalinclude:: ../examples/colors.py
    :lines: 3-

.. image:: _static/colors.svg
    :align: center
