Converting nested dictionary with overlapping keys to NetworkX
So I have a real mess here, as far as I can see. My goal is a directed and weighted network. The main issue I’m facing is that my output that I’m trying to convert to weighted edges is coming from a ‘for’ loop, and I tend to get either the first or last output of the loop no matter what I do.