Add a method to edges to reverse their direction