For an edge operation `f`, define both `f(g, src(e), dst(e))` and `f(g, e)` on abstract graphs See https://github.com/sbromberger/LightGraphs.jl/issues/1287