Skip to content

Commit

Permalink
src/sage/graphs/generators/families.py: Fix annotations to # optional…
Browse files Browse the repository at this point in the history
… - networkx
  • Loading branch information
Matthias Koeppe committed Mar 14, 2023
1 parent 5324919 commit f9e8aa0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/sage/graphs/generators/families.py
Original file line number Diff line number Diff line change
Expand Up @@ -3409,29 +3409,29 @@ def WheelGraph(n):
Next, using the spring-layout algorithm::
sage: import networkx # optional - sage.groups
sage: import networkx # optional - networkx
sage: g = []
sage: j = []
sage: for i in range(9): # optional - sage.groups
sage: for i in range(9): # optional - networkx
....: spr = networkx.wheel_graph(i+3)
....: k = Graph(spr)
....: g.append(k)
...
sage: for i in range(3): # optional - sage.groups
sage: for i in range(3): # optional - networkx
....: n = []
....: for m in range(3):
....: n.append(g[3*i + m].plot(vertex_size=50, vertex_labels=False))
....: j.append(n)
...
sage: G = graphics_array(j) # optional - sage.groups
sage: G.show() # long time # optional - sage.groups
sage: G = graphics_array(j) # optional - networkx
sage: G.show() # long time # optional - networkx
Compare the plotting::
sage: n = networkx.wheel_graph(23) # optional - sage.groups
sage: spring23 = Graph(n) # optional - sage.groups
sage: n = networkx.wheel_graph(23) # optional - networkx
sage: spring23 = Graph(n) # optional - networkx
sage: posdict23 = graphs.WheelGraph(23)
sage: spring23.show() # long time # optional - sage.groups
sage: spring23.show() # long time # optional - networkx
sage: posdict23.show() # long time
"""
from sage.graphs.generators.basic import CycleGraph
Expand Down

0 comments on commit f9e8aa0

Please sign in to comment.