I have the following weights and graph:
w = {2., 1., 0.5, 0.3, 1.2};
GraphPlot[{1 -> 2, 3 -> 1, 3 -> 2, 4 -> 1, 4 -> 2}]
What I want is to visualize the graph in such a way that edges have a different thickness and color proportionally, depending on the weights given.
Does anyone know how to do this in Mathematica?
Thanks in advance for any help!