def edge_load_centrality(G, cutoff=False):
 betweenness = {}
 for (u, v) in G.edges():
  betweenness[(u, v)] = 0.0
  betweenness[(v, u)] = 0.0
 for source in G:
  ubetween = _edge_betweenness(G, source, cutoff=cutoff)
  for (e, ubetweenv) in ubetween.items():
   betweenness[e] += ubetweenv
 return betweenness

def edge_load_centrality ( G , cutoff = False ) : betweenness = { } for ( u , v ) in G . edges ( ) : betweenness [ ( u , v ) ] = 0.0 betweenness [ ( v , u ) ] = 0.0 for source in G : ubetween = _edge_betweenness ( G , source , cutoff = cutoff ) for ( e , ubetweenv ) in ubetween . items ( ) : betweenness [ e ] += ubetweenv return betweenness
compute edge load .