public static <N> com.google.common.graph.EndpointPair<N> unwrapEndpointsPair(EndpointPair<N> endpoints) {
    if (endpoints.isOrdered()) {
      return com.google.common.graph.EndpointPair.ordered(endpoints.source(), endpoints.target());
    }
    else {
      return com.google.common.graph.EndpointPair.unordered(endpoints.nodeU(), endpoints.nodeV());
    }
  }
public static <N> com.google.common.graph.EndpointPair<N> unwrapEndpointsPair(EndpointPair<N> endpoints)