def copy_to_bidirectional(g:nx.DiGraph, weight='weight'): return nx.compose(g, reverse_weights(g, weight=weight))