comparison docs/intro.rst @ 151:4a8c122725b0

Move all the example files to "examples/"
author Franz Glasner <fzglas.hg@dom66.de>
date Thu, 07 May 2026 16:12:15 +0200
parents 4acf578ae93f
children 66d49e49b06b
comparison
equal deleted inserted replaced
150:4acf578ae93f 151:4a8c122725b0
83 83
84 .. rubric:: Some Examples 84 .. rubric:: Some Examples
85 85
86 A synthetic example with most features: 86 A synthetic example with most features:
87 87
88 .. literalinclude:: example-1.pseudocode 88 .. literalinclude:: examples/example-1.pseudocode
89 :language: algpseudocode 89 :language: algpseudocode
90 :lines: 2- 90 :lines: 2-
91 91
92 With a customized `AlgPseudocodeLexer` and its `no_end` 92 With a customized `AlgPseudocodeLexer` and its `no_end`
93 option set to ``True``. 93 option set to ``True``.
94 94
95 .. literalinclude:: example-1.pseudocode 95 .. literalinclude:: examples/example-1.pseudocode
96 :language: NoEndAlgPseudocode 96 :language: NoEndAlgPseudocode
97 :lines: 2- 97 :lines: 2-
98 98
99 This is Wikipedia's description of *Dinic's Algorithm* 99 This is Wikipedia's description of *Dinic's Algorithm*
100 (see https://en.wikipedia.org/wiki/Dinic%27s_algorithm): 100 (see https://en.wikipedia.org/wiki/Dinic%27s_algorithm):
101 101
102 .. literalinclude:: algorithm-dinic.description 102 .. literalinclude:: examples/algorithm-dinic.description
103 :language: algpseudocode 103 :language: algpseudocode
104 :lines: 2- 104 :lines: 2-
105 105
106 This is Wikipedia's pseudocode of the *Ford–Fulkerson Algorithm* 106 This is Wikipedia's pseudocode of the *Ford–Fulkerson Algorithm*
107 (see https://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm): 107 (see https://en.wikipedia.org/wiki/Ford%E2%80%93Fulkerson_algorithm):
108 108
109 .. literalinclude:: algorithm-ford-fulkerson.pseudocode 109 .. literalinclude:: examples/algorithm-ford-fulkerson.pseudocode
110 :language: algpseudocode 110 :language: algpseudocode
111 :lines: 2- 111 :lines: 2-
112 112
113 This is Wikipedia's pseudocode of the *Edmonds–Karp Algorithm* 113 This is Wikipedia's pseudocode of the *Edmonds–Karp Algorithm*
114 (see https://en.wikipedia.org/wiki/Edmonds%E2%80%93Karp_algorithm): 114 (see https://en.wikipedia.org/wiki/Edmonds%E2%80%93Karp_algorithm):
115 115
116 .. literalinclude:: algorithm-edmonds-karp.pseudocode 116 .. literalinclude:: examples/algorithm-edmonds-karp.pseudocode
117 :language: NoEndAlgPseudocode 117 :language: NoEndAlgPseudocode
118 :lines: 2- 118 :lines: 2-
119 119
120 And now the *Edmonds–Karp Algorithm* with french keywords: 120 And now the *Edmonds–Karp Algorithm* with french keywords:
121 121
122 .. literalinclude:: algorithm-edmonds-karp.pseudocode 122 .. literalinclude:: examples/algorithm-edmonds-karp.pseudocode
123 :language: algpseudocode-fr 123 :language: algpseudocode-fr
124 :lines: 2- 124 :lines: 2-