Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 54 for EndpointPair (0.1 sec)

  1. guava/src/com/google/common/graph/IncidentEdgeSet.java

      public boolean contains(@CheckForNull Object obj) {
        if (!(obj instanceof EndpointPair)) {
          return false;
        }
        EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
    
        if (graph.isDirected()) {
          if (!endpointPair.isOrdered()) {
            return false;
          }
    
          Object source = endpointPair.source();
          Object target = endpointPair.target();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(1, 2))).isFalse();
        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(2, 1))).isFalse();
      }
    
      @Test
      public void hasEdgeConnecting_undirected_correct() {
        graph = ValueGraphBuilder.undirected().build();
        graph.putEdgeValue(1, 2, "A");
        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(1, 2))).isTrue();
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/AbstractNetwork.java

              // operations only in weird cases like checking for an EndpointPair<ArrayList> in a
              // Network<LinkedList>.
              @SuppressWarnings("unchecked")
              @Override
              public boolean contains(@CheckForNull Object obj) {
                if (!(obj instanceof EndpointPair)) {
                  return false;
                }
                EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/AbstractNetwork.java

              // operations only in weird cases like checking for an EndpointPair<ArrayList> in a
              // Network<LinkedList>.
              @SuppressWarnings("unchecked")
              @Override
              public boolean contains(@CheckForNull Object obj) {
                if (!(obj instanceof EndpointPair)) {
                  return false;
                }
                EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(1, 2))).isFalse();
        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(2, 1))).isFalse();
      }
    
      @Test
      public void hasEdgeConnecting_undirected_correct() {
        graph = ValueGraphBuilder.undirected().build();
        graph.putEdgeValue(1, 2, "A");
        assertThat(graph.hasEdgeConnecting(EndpointPair.unordered(1, 2))).isTrue();
      }
    
      @Test
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  6. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/ForwardingNetwork.java

      }
    
      @Override
      public Set<E> edgesConnecting(EndpointPair<N> endpoints) {
        return delegate().edgesConnecting(endpoints);
      }
    
      @Override
      public Optional<E> edgeConnecting(N nodeU, N nodeV) {
        return delegate().edgeConnecting(nodeU, nodeV);
      }
    
      @Override
      public Optional<E> edgeConnecting(EndpointPair<N> endpoints) {
        return delegate().edgeConnecting(endpoints);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/GraphMutationTest.java

          while (graph.edges().size() < NUM_EDGES) {
            graph.putEdge(getRandomElement(nodeList, gen), getRandomElement(nodeList, gen));
          }
          ArrayList<EndpointPair<Integer>> edgeList = new ArrayList<>(graph.edges());
    
          assertThat(graph.nodes()).hasSize(NUM_NODES);
          assertThat(graph.edges()).hasSize(NUM_EDGES);
          AbstractGraphTest.validateGraph(graph);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .putEdgeValue(2, 3, "2-3")
                .putEdgeValue(1, 2, "1-2")
                .build();
    
        assertThat(graph.incidentEdges(2))
            .containsExactly(
                EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2))
            .inOrder();
      }
    
      @Test
      public void immutableValueGraphBuilder_incidentEdgeOrder_stable() {
        ImmutableValueGraph<Integer, String> graph =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/StandardMutableGraph.java

      }
    
      @Override
      public boolean putEdge(N nodeU, N nodeV) {
        return backingValueGraph.putEdgeValue(nodeU, nodeV, Presence.EDGE_EXISTS) == null;
      }
    
      @Override
      public boolean putEdge(EndpointPair<N> endpoints) {
        validateEndpoints(endpoints);
        return putEdge(endpoints.nodeU(), endpoints.nodeV());
      }
    
      @Override
      public boolean removeNode(N node) {
        return backingValueGraph.removeNode(node);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.4K bytes
    - Viewed (0)
Back to top