Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Changing the labels of a graph and access to the thikness of the edges

This is a graph. But now I want the vertices labeled with {'A','B','C'} or some names and in colors. And I have not seen an option for the thikness of the edge and the arrow

Working with this exemple addapted from the documentation

D = DiGraph({0:[0,1], 1:[2], 2:[3]}, loops=True)
D.show(edge_colors={(0,1,1):[(0,1),(2,3)]})

I have been suprised not to be allowed to put edge_colors inside show() in my case, but this is of less importance since there is an other way.

Of more importance, in graph option I have not seen any command for the thikness of the edges and arrow head.

One more time thanks for your help

Changing the labels of a graph and access to the thikness of the edges

This is a graph. But now I want the vertices labeled with {'A','B','C'} or some names and in colors. And I have not seen an option for the thikness of the edge and the arrow

Working with this exemple addapted from the documentation

D = DiGraph({0:[0,1], 1:[2], 2:[3]}, loops=True)
D.show(edge_colors={(0,1,1):[(0,1),(2,3)]})

I have been suprised not to be allowed to put edge_colors inside show() in my case, but this is of less importance since there is an other way.

Of more importance, in graph option I have not seen any command for the thikness of the edges and arrow head.

One more time thanks for your help

Changing the labels of a graph and access to the thikness of the edgesedge thickness

This is a graph. But now I want the vertices labeled with {'A','B','C'}{'A', 'B', 'C'} or some names names, and in colors. colored. And I have not seen an option option for specifying the thikness thickness of edges and of the edge and the arrowarrow head.

Working with this exemple addapted example adapted from the documentationdocumentation:

D = DiGraph({0:[0,1], 1:[2], 2:[3]}, DiGraph({0: [0, 1], 1: [2], 2: [3]}, loops=True)
D.show(edge_colors={(0,1,1):[(0,1),(2,3)]})
D.show(edge_colors={(0, 1, 1): [(0, 1), (2, 3)]})

I have been suprised surprised not to be allowed to put edge_colors edge_colors inside show() in my case, but this is of less importance since there is an other another way.

Of more importance, in graph option options I have not seen any command command for the thikness thickness of the edges and of the arrow head.

One more time thanks for your helphelp.