Changing labels of a graph and access edge thickness
This is a graph. But now I want the vertices labeled with {'A', 'B', 'C'}
or some names, and colored. And I have not seen an option
for specifying the thickness of edges and of the arrow head.
Working with this example adapted 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 surprised not to be allowed to put edge_colors
inside show()
in my case, but this is of less importance since there is another way.
Of more importance, in graph options I have not seen any command for the thickness of the edges and of the arrow head.
One more time thanks for your help.