code: public static <N> EndpointPair<N> unordered(N nodeU, N nodeV) {
      // Swap nodes on purpose to prevent callers from relying on the "ordering" of an unordered pair.
      return new Unordered<N>(nodeV, nodeU);
    }
docs: Returns an {@link EndpointPair} representing the endpoints of an undirected edge.