I have a simple graph, consisting 6 nodes and the connection is:
node = {{1, 2}, {2, 3}, {2, 4}, {4, 5}, {5, 6}, {3, 6}};
Each node corresponds to a weight, assuming it is
weight={1,2,3,4,5,6}
Now I want to plot this graph, showing the actual number on each node and assign the node color based on the weight. (If possible, I also would like to assign the color of the connection line with colors, changing smoothly from one node to another).