I am quite new to network analysis. I have a code that creates a network basically as I want it except that I cannot manage to assign colors to the edges based on the weight