File: examples.rst

package info (click to toggle)
python-graphviz 0.20.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,188 kB
  • sloc: python: 4,098; makefile: 13
file content (175 lines) | stat: -rw-r--r-- 2,718 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
.. _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