Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to alter the edge opacity in Python igraph?

I know that you can adjust a graphs overall opacity in the plot function (opacity = (0 to 1)), but I cannot find anything in the manual or online searches that speak of altering the edge opacity (or transparency)?

like image 537
Vince Avatar asked Nov 19 '25 03:11

Vince


1 Answers

Edge opacity can be altered with the color attribute of the edge or with the edge_color keyword argument of plot(). The colors that you specify there are passed through the color_name_to_rgba function so you can use anything that color_name_to_rgba understands there; the easiest is probably an (R, G, B, A) tuple or the standard HTML #rrggbbaa syntax, where A is the opacity. Unfortunately this is not documented well but I'll fix it in the next release.

like image 82
Tamás Avatar answered Nov 20 '25 15:11

Tamás



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!