📑  SageMath Online Mini Campus. Code Set 12

🌀   Homepage     🌀   GitHub Pages     🌀   Previous     🌀   Next     🌀   Instagram Posts     🌀   Pinterest Posts

The set of interactive pages with the following structure:

Example of Computations $\mathbb{\implies}$ Your Experiments $\mathbb{\implies}$ Python Modules $\mathbb{\implies}$ Other Languages

Example of Computations

Click the $\mathbb{activate}$ button below to display an interactive example.


@interact
def _(Graph=['Petersen','Moebius Kantor','Dodecahedral',
             'Icosahedral','Kittell','Flower Snark']):
    graph_dict={'Moebius Kantor':graphs.MoebiusKantorGraph(),
                'Flower Snark':graphs.FlowerSnark(),
                'Dodecahedral':graphs.DodecahedralGraph(),
                'Icosahedral':graphs.IcosahedralGraph(),
                'Kittell':graphs.KittellGraph(),
                'Petersen':graphs.PetersenGraph()}
    g=graph_dict[Graph]
    [g.set_edge_label(u,v,u) for u,v,l in g.edges()]
    gp=g.graphplot(vertex_labels=False,vertex_size=0,color_by_label=True)
    gp.show(figsize=(5,5))


Your Experiments

Type your own SageMath code lines below and click the $\mathbb{evaluate}$ button.


This code cell was evaluated automatically.


Python Modules

Other Languages (R, HTML, ...)