Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 38 of 38 for EndpointPair (0.75 sec)

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

      }
    
      @Override
      public EndpointPair<N> incidentNodes(E edge) {
        N nodeU = checkedReferenceNode(edge);
        // requireNonNull is safe because checkedReferenceNode made sure the edge is in the network.
        N nodeV = requireNonNull(nodeConnections.get(nodeU)).adjacentNode(edge);
        return EndpointPair.of(this, nodeU, nodeV);
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/StandardNetwork.java

      }
    
      @Override
      public EndpointPair<N> incidentNodes(E edge) {
        N nodeU = checkedReferenceNode(edge);
        // requireNonNull is safe because checkedReferenceNode made sure the edge is in the network.
        N nodeV = requireNonNull(nodeConnections.get(nodeU)).adjacentNode(edge);
        return EndpointPair.of(this, nodeU, nodeV);
      }
    
      @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/GraphConstants.java

              + "that allows self-loops, call allowsSelfLoops(true) on the Builder.";
      static final String NOT_AVAILABLE_ON_UNDIRECTED =
          "Cannot call source()/target() on a EndpointPair from an undirected graph. Consider calling "
              + "adjacentNode(node) if you already have a node, or nodeU()/nodeV() if you don't.";
      static final String EDGE_ALREADY_EXISTS = "Edge %s already exists in the graph.";
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/MutableNetwork.java

       *     #allowsParallelEdges()} or {@link #allowsSelfLoops()}
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
       * @since 27.1
       */
      @CanIgnoreReturnValue
      boolean addEdge(EndpointPair<N> endpoints, E edge);
    
      /**
       * Removes {@code node} if it is present; all edges incident to {@code node} will also be removed.
       *
       * @return {@code true} if the network was modified as a result of this call
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/MutableNetwork.java

       *     #allowsParallelEdges()} or {@link #allowsSelfLoops()}
       * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
       * @since 27.1
       */
      @CanIgnoreReturnValue
      boolean addEdge(EndpointPair<N> endpoints, E edge);
    
      /**
       * Removes {@code node} if it is present; all edges incident to {@code node} will also be removed.
       *
       * @return {@code true} if the network was modified as a result of this call
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/ImmutableGraph.java

         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
        public Builder<N> putEdge(EndpointPair<N> endpoints) {
          mutableGraph.putEdge(endpoints);
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableGraph} based on the contents of this {@code Builder}.
         */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
        public ImmutableValueGraph.Builder<N, V> putEdgeValue(EndpointPair<N> endpoints, V value) {
          mutableValueGraph.putEdgeValue(endpoints, value);
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableValueGraph} based on the contents of this {@code
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableValueGraph.java

         *     #allowsSelfLoops()}
         * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed
         */
        @CanIgnoreReturnValue
        public ImmutableValueGraph.Builder<N, V> putEdgeValue(EndpointPair<N> endpoints, V value) {
          mutableValueGraph.putEdgeValue(endpoints, value);
          return this;
        }
    
        /**
         * Returns a newly-created {@code ImmutableValueGraph} based on the contents of this {@code
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top