@@ -951,7 +951,7 @@ def is_directed_acyclic(self, certificate=False):
951951 At first, the following graph is acyclic::
952952
953953 sage: D = DiGraph({0:[1, 2, 3], 4:[2, 5], 1:[8], 2:[7], 3:[7], 5:[6,7], 7:[8], 6:[9], 8:[10], 9:[10]})
954- sage: D.plot(layout='circular').show()
954+ sage: D.plot(layout='circular').show() # optional - sage.plot
955955 sage: D.is_directed_acyclic()
956956 True
957957
@@ -3140,7 +3140,7 @@ def topological_sort(self, implementation="default"):
31403140
31413141 sage: D = DiGraph({0: [1, 2, 3], 4: [2, 5], 1: [8], 2: [7], 3: [7],
31423142 ....: 5: [6, 7], 7: [8], 6: [9], 8: [10], 9: [10]})
3143- sage: D.plot(layout='circular').show()
3143+ sage: D.plot(layout='circular').show() # optional - sage.plot
31443144 sage: D.topological_sort()
31453145 [4, 5, 6, 9, 0, 1, 2, 3, 7, 8, 10]
31463146
@@ -3220,7 +3220,7 @@ def topological_sort_generator(self):
32203220 EXAMPLES::
32213221
32223222 sage: D = DiGraph({0: [1, 2], 1: [3], 2: [3, 4]})
3223- sage: D.plot(layout='circular').show()
3223+ sage: D.plot(layout='circular').show() # optional - sage.plot
32243224 sage: list(D.topological_sort_generator())
32253225 [[0, 1, 2, 3, 4], [0, 2, 1, 3, 4], [0, 2, 1, 4, 3], [0, 2, 4, 1, 3], [0, 1, 2, 4, 3]]
32263226
0 commit comments