The set of interactive pages with the following structure:
Example of Computations $\mathbb{\implies}$ Your Experiments $\mathbb{\implies}$ Python Modules $\mathbb{\implies}$ Other Languages
Click the $\mathbb{activate}$ button below to display an interactive example.
@interact
def _(N=[2,3,4]):
bd=digraphs.ButterflyGraph(N)
nvl=[u+'$\\to$'+str(v) for u,v in bd.vertices()]
bd.relabel(dict(zip(bd.vertices(),nvl)))
[bd.set_edge_label(u,v,v)
for u,v,l in bd.edges()]
bd.show(figsize=7,vertex_size=3,
layout='circular',color_by_label=True)
Type your own SageMath code lines below and click the $\mathbb{evaluate}$ button.
This code cell was evaluated automatically.