static <N> EndpointPair<N> of(Network<?, ?> network, N nodeU, N nodeV) {
    return network.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
  }
static <N> EndpointPair<N> of(Network<?, ?> network, N nodeU, N nodeV) {
    return network.isDirected() ? ordered(nodeU, nodeV) : unordered(nodeU, nodeV);
  }
static < N > EndpointPair < N > of ( Network < ? , ? > network , N nodeU , N nodeV ) { return network . isDirected ( ) ? ordered ( nodeU , nodeV ) : unordered ( nodeU , nodeV ) ; }
Returns an {@link EndpointPair} representing the endpoints of an edge in {@code network}.
Returns an {