Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Try the following code in ipython in SMC to load the sage commands and the networkx library. Then, you can see the graph.

from sage.all import *
import networkx as nx
G = graphs.WheelGraph(15)
H=G.networkx_graph()
nx.draw(H)
plt.savefig("simple_path.png")
plt.show()