Skip to content

Commit d257a77

Browse files
committed
Convert :: to explicit code-block directive
1 parent 1889b93 commit d257a77

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Doc/library/graphlib.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,9 @@ graph to the constructor of :class:`TopologicalSorter`:
224224

225225
Return a dict mapping nodes to sets of successors. The returned graph will
226226
include a key for all nodes in the input graph, possibly with an empty set
227-
of successors::
227+
of successors:
228+
229+
.. code-block:: pycon
228230
229231
>>> reverse({"a": ["b", "c"], "d": [], "c": ["e"]})
230232
{'b': {'a'}, 'c': {'a'}, 'a': set(), 'd': set(), 'e': {'c'}}
@@ -248,7 +250,9 @@ graph to the constructor of :class:`TopologicalSorter`:
248250

249251
Nodes that do not appear as keys in the input graph, but appear as
250252
predecessors of other nodes, will not be included as keys in the returned
251-
transitive graph::
253+
transitive graph:
254+
255+
.. code-block:: pycon
252256
253257
>>> as_transitive({"a": ["b"], "b": ["c"]})
254258
{'a': {'b', 'c'}, 'b': {'c'}}

0 commit comments

Comments
 (0)