Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 195 for accessors (0.34 sec)

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

      }
    
      @Test
      public void successors_noSuccessors() {
        addNode(N1);
        assertThat(network.successors(N1)).isEmpty();
      }
    
      @Test
      public void successors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> network.successors(NODE_NOT_IN_GRAPH)));
      }
    
      @Test
      public void addNode_newNode() {
    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)
  2. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      }
    
      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = graph.successors(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        putEdge(N1, N2);
        assertThat(successors).containsExactlyElementsIn(graph.successors(N1));
      }
    
    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)
  3. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void successors_noSuccessors() {
        addNode(N1);
        assertThat(graph.successors(N1)).isEmpty();
      }
    
      @Test
      public void successors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.successors(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)
  4. android/guava/src/com/google/common/graph/DirectedMultiNetworkConnections.java

      @Override
      public Set<N> successors() {
        return Collections.unmodifiableSet(successorsMultiset().elementSet());
      }
    
      private Multiset<N> successorsMultiset() {
        Multiset<N> successors = getReference(successorsReference);
        if (successors == null) {
          successors = HashMultiset.create(outEdgeMap.values());
          successorsReference = new SoftReference<>(successors);
        }
        return successors;
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 4.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void successors_noSuccessors() {
        addNode(N1);
        assertThat(graph.successors(N1)).isEmpty();
      }
    
      @Test
      public void successors_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
            assertThrows(IllegalArgumentException.class, () -> graph.successors(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)
  6. android/guava/src/com/google/common/graph/Traverser.java

                if (next != null) {
                  Iterator<? extends N> successors = successorFunction.successors(next).iterator();
                  if (successors.hasNext()) {
                    // BFS: horizon.addLast(successors)
                    // Pre-order: horizon.addFirst(successors)
                    order.insertInto(horizon, successors);
                  }
                  return next;
                }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = network.successors(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        addEdge(N1, N2, E12);
        assertThat(successors).containsExactlyElementsIn(network.successors(N1));
      }
    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)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
        addNode(N1);
        Set<Integer> successors = network.successors(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.successors(N1)).containsExactlyElementsIn(successors);
      }
    
      @Test
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.3K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = graph.successors(N1);
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactlyElementsIn(successors);
      }
    
    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/src/com/google/common/graph/SuccessorsFunction.java

     * which has a method {@code getChildren()} that retrieves its successors in a graph:
     *
     * <pre>{@code
     * someGraphAlgorithm(startNode, MyNode::getChildren);
     * }</pre>
     *
     * <p>If you have some other mechanism for returning the successors of a node, or one that doesn't
     * return an {@code Iterable<? extends N>}, then you can use a lambda to perform a more general
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 4.3K bytes
    - Viewed (0)
Back to top