xxxxxxxxxx
import warnings; warnings.filterwarnings('ignore')
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))
No comments:
Post a Comment