reverse-edges reverse node order in a graph's edges
unify keyword argument naming -fun -> -fn