Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 55 for predecessors (0.06 sec)

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

        addEdge(N1, N2, E12);
        Set<Integer> n1AdjacentNodes = network.adjacentNodes(N1);
        Set<Integer> n2AdjacentNodes = network.adjacentNodes(N2);
        Set<Integer> n1Predecessors = network.predecessors(N1);
        Set<Integer> n2Predecessors = network.predecessors(N2);
        Set<Integer> n1Successors = network.successors(N1);
        Set<Integer> n2Successors = network.successors(N2);
        Set<String> n1IncidentEdges = network.incidentEdges(N1);
    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

            }
            assertThat(
                    graph.predecessors(node).contains(adjacentNode)
                        || graph.successors(node).contains(adjacentNode))
                .isTrue();
          }
    
          for (N predecessor : sanityCheckSet(graph.predecessors(node))) {
            assertThat(graph.successors(predecessor)).contains(node);
            assertThat(graph.hasEdgeConnecting(predecessor, node)).isTrue();
    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(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
      @Override
      @Test
      public void successors_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. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
    
        addNode(N2);
        Set<Integer> predecessors = graph.predecessors(N2);
        assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        putEdge(N1, N2);
        assertThat(graph.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
      @Override
      @Test
      public void successors_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)
  5. android/guava/src/com/google/common/graph/GraphConnections.java

      /** Remove {@code node} from the set of predecessors. */
      void removePredecessor(N node);
    
      /**
       * 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
    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. android/guava/src/com/google/common/graph/PredecessorsFunction.java

     * which has a method {@code getParents()} that retrieves its predecessors in a graph:
     *
     * <pre>{@code
     * someGraphAlgorithm(startNode, MyNode::getParents);
     * }</pre>
     *
     * <p>If you have some other mechanism for returning the predecessors of a node, or one that doesn't
     * return a {@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.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

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

      @Test
      public void predecessors_checkReturnedSetMutability() {
        addNode(N2);
        Set<Integer> predecessors = network.predecessors(N2);
        assertThrows(UnsupportedOperationException.class, () -> predecessors.add(N1));
        addEdge(N1, N2, E12);
        assertThat(network.predecessors(N2)).containsExactlyElementsIn(predecessors);
      }
    
      @Override
      @Test
      public void successors_checkReturnedSetMutability() {
    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. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

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