Suppose I have an external file with some data about a graph whose edges values are members of a small family (e.g. all edges values are either 0.25, 0.5, 0.75 or 1).
Is it possible to automatically color the edges of the imported graph according to the edges' values? Following the last example, I'd want all edges of value 1 in black, of value 0.75 in dark blue, of 0.5 in blue and 0.25 in light blue.
Is it possible to do the same but for a range of values (e.g. all edges of values between 0.75 and 1 in black)? Perhaps change the color gradually from black for edge value 1 to light blue for edge value 0.25?
Thanks.