Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 96 for successors (0.06 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/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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/GraphConnections.java

      /**
       * Remove {@code node} from the set of successors. Returns the value previously associated with
       * the edge connecting the two nodes.
       */
      @CanIgnoreReturnValue
      @CheckForNull
      V removeSuccessor(N node);
    
      /**
       * Add {@code node} as a predecessor to the origin node. In the case of an undirected graph, it
       * also becomes a successor. Associates {@code value} with the edge connecting the two nodes.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

        return delegate().adjacentNodes(node);
      }
    
      @Override
      public Set<N> predecessors(N node) {
        return delegate().predecessors(node);
      }
    
      @Override
      public Set<N> successors(N node) {
        return delegate().successors(node);
      }
    
      @Override
      public int degree(N node) {
        return delegate().degree(node);
      }
    
      @Override
      public int inDegree(N node) {
        return delegate().inDegree(node);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  10. 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)
Back to top