Skip to content

Commit b3e5497

Browse files
author
Matthias Koeppe
committed
src/sage/graphs/generators/families.py: Fix annotations to # optional - networkx
1 parent f3c3c35 commit b3e5497

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sage/graphs/generators/families.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3409,29 +3409,29 @@ def WheelGraph(n):
34093409
34103410
Next, using the spring-layout algorithm::
34113411
3412-
sage: import networkx # optional - sage.groups
3412+
sage: import networkx # optional - networkx
34133413
sage: g = []
34143414
sage: j = []
3415-
sage: for i in range(9): # optional - sage.groups
3415+
sage: for i in range(9): # optional - networkx
34163416
....: spr = networkx.wheel_graph(i+3)
34173417
....: k = Graph(spr)
34183418
....: g.append(k)
34193419
...
3420-
sage: for i in range(3): # optional - sage.groups
3420+
sage: for i in range(3): # optional - networkx
34213421
....: n = []
34223422
....: for m in range(3):
34233423
....: n.append(g[3*i + m].plot(vertex_size=50, vertex_labels=False))
34243424
....: j.append(n)
34253425
...
3426-
sage: G = graphics_array(j) # optional - sage.groups
3427-
sage: G.show() # long time # optional - sage.groups
3426+
sage: G = graphics_array(j) # optional - networkx
3427+
sage: G.show() # long time # optional - networkx
34283428
34293429
Compare the plotting::
34303430
3431-
sage: n = networkx.wheel_graph(23) # optional - sage.groups
3432-
sage: spring23 = Graph(n) # optional - sage.groups
3431+
sage: n = networkx.wheel_graph(23) # optional - networkx
3432+
sage: spring23 = Graph(n) # optional - networkx
34333433
sage: posdict23 = graphs.WheelGraph(23)
3434-
sage: spring23.show() # long time # optional - sage.groups
3434+
sage: spring23.show() # long time # optional - networkx
34353435
sage: posdict23.show() # long time
34363436
"""
34373437
from sage.graphs.generators.basic import CycleGraph

0 commit comments

Comments
 (0)