Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 74 for successors (0.05 sec)

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

          }
    
          for (N successor : sanityCheckSet(network.successors(node))) {
            assertThat(network.predecessors(successor)).contains(node);
            assertThat(network.edgesConnecting(node, successor)).isNotEmpty();
          }
    
          for (E incidentEdge : sanityCheckSet(network.incidentEdges(node))) {
            assertTrue(
                network.inEdges(node).contains(incidentEdge)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

          }
    
          for (N successor : sanityCheckSet(graph.successors(node))) {
            allEndpointPairs.add(EndpointPair.of(graph, node, successor));
            assertThat(graph.predecessors(successor)).contains(node);
            assertThat(graph.hasEdgeConnecting(node, successor)).isTrue();
            assertThat(graph.incidentEdges(node)).contains(EndpointPair.of(graph, node, successor));
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = graph.successors(N1);
        assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactlyElementsIn(successors);
      }
    
      @Override
      @Test
      public void incidentEdges_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/AbstractBaseGraph.java

                          Iterators.transform(
                              // filter out 'node' from successors (already covered by predecessors,
                              // above)
                              Sets.difference(graph.successors(node), ImmutableSet.of(node)).iterator(),
                              (N successor) -> EndpointPair.ordered(node, successor))));
                } else {
                  return Iterators.unmodifiableIterator(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = network.successors(N1);
        assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        addEdge(N1, N2, E12);
        assertThat(successors).containsExactlyElementsIn(network.successors(N1));
      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = network.successors(N1);
        assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        addEdge(N1, N2, E12);
        assertThat(successors).containsExactlyElementsIn(network.successors(N1));
      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

            checkArgument(incidentEdge.nodeU().equals(thisNode));
    
            N successor = incidentEdge.nodeV();
            V value = successorNodeToValueFn.apply(successor);
    
            Object existingValue = adjacentNodeValues.put(successor, value);
            if (existingValue != null) {
              checkArgument(existingValue == PRED);
              adjacentNodeValues.put(successor, new PredAndSucc(value));
            }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 18K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> successors = graph.successors(N1);
        assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactlyElementsIn(successors);
      }
    
      @Override
      @Test
      public void incidentEdges_checkReturnedSetMutability() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
        addNode(N1);
        Set<Integer> successors = network.successors(N1);
        assertThrows(UnsupportedOperationException.class, () -> successors.add(N2));
        addEdge(N1, N2, E12);
        assertThat(network.successors(N1)).containsExactlyElementsIn(successors);
      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/StandardValueGraph.java

      @Override
      public Set<N> predecessors(N node) {
        return nodeInvalidatableSet(checkedConnections(node).predecessors(), node);
      }
    
      @Override
      public Set<N> successors(N node) {
        return nodeInvalidatableSet(checkedConnections(node).successors(), node);
      }
    
      @Override
      public Set<EndpointPair<N>> incidentEdges(N node) {
        GraphConnections<N, V> connections = checkedConnections(node);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top