let edge_end co = if co then G.E.src else G.E.dst