File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/sage/graphs/generators Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -3409,29 +3409,29 @@ def WheelGraph(n):
3409
3409
3410
3410
Next, using the spring-layout algorithm::
3411
3411
3412
- sage: import networkx # optional - sage.groups
3412
+ sage: import networkx # optional - networkx
3413
3413
sage: g = []
3414
3414
sage: j = []
3415
- sage: for i in range(9): # optional - sage.groups
3415
+ sage: for i in range(9): # optional - networkx
3416
3416
....: spr = networkx.wheel_graph(i+3)
3417
3417
....: k = Graph(spr)
3418
3418
....: g.append(k)
3419
3419
...
3420
- sage: for i in range(3): # optional - sage.groups
3420
+ sage: for i in range(3): # optional - networkx
3421
3421
....: n = []
3422
3422
....: for m in range(3):
3423
3423
....: n.append(g[3*i + m].plot(vertex_size=50, vertex_labels=False))
3424
3424
....: j.append(n)
3425
3425
...
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
3428
3428
3429
3429
Compare the plotting::
3430
3430
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
3433
3433
sage: posdict23 = graphs.WheelGraph(23)
3434
- sage: spring23.show() # long time # optional - sage.groups
3434
+ sage: spring23.show() # long time # optional - networkx
3435
3435
sage: posdict23.show() # long time
3436
3436
"""
3437
3437
from sage .graphs .generators .basic import CycleGraph
You can’t perform that action at this time.
0 commit comments