https://github.com/xflr6/graphviz
Raw File
Tip revision: f5c2aaf18fc93722121f383e720780de8d09028a authored by Sebastian Bank on 14 July 2021, 07:21:38 UTC
release 0.17
Tip revision: f5c2aaf
examples.rst
.. _examples:

Examples
========

The following code examples are included in the ``examples/`` directory of the
`source repository/distribution`__. Most of them recreate examples from the
`graphviz.org gallery`__ or the `graphviz.org documentation`__.

.. __: https://github.com/xflr6/graphviz/tree/master/examples/
.. __: http://www.graphviz.org/gallery/
.. __: http://www.graphviz.org/documentation/


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
back to top