changing return of betweenness to be a dictionary instead of a tuple