1 | initial version |
You can relabel the graph with the relabel
method:
sage: D.relabel(['A','B','C','D'])
check
sage: D.relabel?
for more options.
Regarding coloring the vertices, you can do
sage: D.show(vertex_colors={'blue':[0,2],'green':[1],'black':[3]})
see
sage: D.plot?
for more plotting options. There might be one somewhere, but i do not see an edge-thickness option either.
2 | No.2 Revision |
You can relabel the graph with the relabel
method:
sage: D.relabel(['A','B','C','D'])
check
sage: D.relabel?
for more options.
Regarding coloring the vertices, you can do
sage: D.show(vertex_colors={'blue':[0,2],'green':[1],'black':[3]})
see
sage: D.plot?
for more plotting options. options.
There might be one somewhere, but i do not see an edge-thickness option either.either in the documentation. However, looking into the source code of the GraphPlot
class:
sage: from sage.graphs.graph_plot import GraphPlot
sage: GraphPlot??
It seems that you can do:
sage: D.show(edge_thickness=4)
Also, there is a edge_style
option which can be one of 'solid', 'dashed', 'dotted', dashdot', 'None'
.