Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for predecessors (0.19 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void predecessors_noPredecessors() {
        addNode(N1);
        assertThat(graph.predecessors(N1)).isEmpty();
      }
    
      @Test
      public void predecessors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.predecessors(NODE_NOT_IN_GRAPH)));
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void predecessors_noPredecessors() {
        addNode(N1);
        assertThat(graph.predecessors(N1)).isEmpty();
      }
    
      @Test
      public void predecessors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.predecessors(NODE_NOT_IN_GRAPH)));
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      public void predecessors_noPredecessors() {
        addNode(N1);
        assertThat(network.predecessors(N1)).isEmpty();
      }
    
      @Test
      public void predecessors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(
                IllegalArgumentException.class, () -> network.predecessors(NODE_NOT_IN_GRAPH)));
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      public void predecessors_noPredecessors() {
        addNode(N1);
        assertThat(network.predecessors(N1)).isEmpty();
      }
    
      @Test
      public void predecessors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(
                IllegalArgumentException.class, () -> network.predecessors(NODE_NOT_IN_GRAPH)));
      }
    
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CompactLinkedHashSet.java

      }
    
      private static final int ENDPOINT = -2;
    
      // TODO(user): predecessors and successors should be collocated (reducing cache misses).
      // Might also explore collocating all of [hash, next, predecessor, successor] fields of an
      // entry in a *single* long[], though that reduces the maximum size of the set by a factor of 2
    
      /**
       * Pointer to the predecessor of an entry in insertion order. ENDPOINT indicates a node is the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      @Override
      @Test
      public void predecessors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = network.predecessors(N2);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        addEdge(N1, N2, E12);
        assertThat(network.predecessors(N2)).containsExactlyElementsIn(predecessors);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
Back to top