I have made a graph network using Networkx. I want to plot the weighted out-degree distribution (y-axis log scale). Where the weighted out degree is the sum of all weights of a node over all its edges. I did the part where I am able to get a DegreeView({5525: 2.25, 48: 1.0, 4877: 0.75, 6434: 0.25, 9308: 0.25}) type object, with output like {node: weighted degree}. But not able to plot the histogram with the values!
Here is a sample graph; where the values I have gotten are correct:
my_degrees = G.degree(weight='weight')
DegreeView({5525: 2.25, 48: 1.0, 4877: 0.75, 6434: 0.25, 9308: 0.25}) ; Here the node 5525 is having the correct value of 2.25 and also the rest are correct. Now how to plot the weighted out-degree distribution (y-axis log scale); i.e degree (y-axis) vs corresponding node (x-axis) on a histogram?
