1 | initial version |
@nburing is right, replacing the None
label with ''
(the empty string does the job. If you have a partially labelled graph G
, and want to replace the None
labels with ''
, you can do the following:
sage: for u,v,l in G.edges():
....: if l is None:
....: G.set_edge_label(u,v,'')
2 | No.2 Revision |
@nburing @rburing is right, replacing the None
label with ''
(the empty string does the job. If you have a partially labelled graph G
, and want to replace the None
labels with ''
, you can do the following:
sage: for u,v,l in G.edges():
....: if l is None:
....: G.set_edge_label(u,v,'')
3 | No.3 Revision |
@rburing is right, replacing the None
label with ''
(the empty string string) does the job. If you have a partially labelled graph G
, and want to replace the None
labels with ''
, you can do the following:
sage: for u,v,l in G.edges():
....: if l is None:
....: G.set_edge_label(u,v,'')