Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for EndpointPair (0.07 sec)

  1. android/guava/src/com/google/common/graph/EndpointPair.java

    @Immutable(containerOf = {"N"})
    public abstract class EndpointPair<N> implements Iterable<N> {
      private final N nodeU;
      private final N nodeV;
    
      private EndpointPair(N nodeU, N nodeV) {
        this.nodeU = checkNotNull(nodeU);
        this.nodeV = checkNotNull(nodeV);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of a directed edge. */
      public static <N> EndpointPair<N> ordered(N source, N target) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/EndpointPair.java

    @Immutable(containerOf = {"N"})
    public abstract class EndpointPair<N> implements Iterable<N> {
      private final N nodeU;
      private final N nodeV;
    
      private EndpointPair(N nodeU, N nodeV) {
        this.nodeU = checkNotNull(nodeU);
        this.nodeV = checkNotNull(nodeV);
      }
    
      /** Returns an {@link EndpointPair} representing the endpoints of a directed edge. */
      public static <N> EndpointPair<N> ordered(N source, N target) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Graphs.java

        public Set<E> outEdges(N node) {
          return delegate().inEdges(node); // transpose
        }
    
        @Override
        public EndpointPair<N> incidentNodes(E edge) {
          EndpointPair<N> endpointPair = delegate().incidentNodes(edge);
          return EndpointPair.of(network, endpointPair.nodeV(), endpointPair.nodeU()); // transpose
        }
    
        @Override
        public Set<E> edgesConnecting(N nodeU, N nodeV) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/Graphs.java

        public Set<E> outEdges(N node) {
          return delegate().inEdges(node); // transpose
        }
    
        @Override
        public EndpointPair<N> incidentNodes(E edge) {
          EndpointPair<N> endpointPair = delegate().incidentNodes(edge);
          return EndpointPair.of(network, endpointPair.nodeV(), endpointPair.nodeU()); // transpose
        }
    
        @Override
        public Set<E> edgesConnecting(N nodeU, N nodeV) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/graph/Network.java

       * any, specified by {@code endpoints}).
       *
       * <p>Unlike the other {@code EndpointPair}-accepting methods, this method does not throw if the
       * endpoints are unordered and the network is directed; it simply returns {@code false}. This is
       * for consistency with {@link Graph#hasEdgeConnecting(EndpointPair)} and {@link
       * ValueGraph#hasEdgeConnecting(EndpointPair)}.
       *
       * @since 27.1
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 22:03:02 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

          assertThat(edgeString).contains(edge.toString());
    
          EndpointPair<N> endpointPair = network.incidentNodes(edge);
          N nodeU = endpointPair.nodeU();
          N nodeV = endpointPair.nodeV();
          assertThat(asGraph.edges()).contains(EndpointPair.of(network, nodeU, nodeV));
          assertThat(network.edgesConnecting(nodeU, nodeV)).contains(edge);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
Back to top