def fix_edge_betweennesses(G):
    """
    Given a graph G, makes sure that every edge has a betweenness
    score assigned to it.
    """
    for e in G.es:
        if e['eb'] is None:
            e['eb'] = 0
