I have a package developed in earlier versions of Mathematica. In it, I use the notation x_ <-> y_ for undirected edges.
When I use this package in 11.2, Mathematica does not match <-> to an undirected edge.
For example, if I define
edge2Distance[x_ <-> y_] := geoDistance[x, y]
in the package, it does not match a call like:
edge2Distance /@ EdgeList[g]
I could rewrite the entire package, but it would be bug-prone and the readability of something like this would not be great.
edge2Distance[UndirectedEdge[x_, y_]] := geoDistance[x, y]
Any ideas what could be done?

TwoWayRule. – Kuba Oct 26 '17 at 10:03EdgeList@Graph[{TwoWayRule[a, b]}]-->{a \[UndirectedEdge] b}– Kuba Oct 26 '17 at 10:14