equivalent edges on graph