Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for successors (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/ForwardingGraph.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 Set<EndpointPair<N>> incidentEdges(N node) {
        return delegate().incidentEdges(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.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/ForwardingGraph.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 Set<EndpointPair<N>> incidentEdges(N node) {
        return delegate().incidentEdges(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.5K bytes
    - Viewed (0)
  8. 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)
  9. guava/src/com/google/common/graph/EndpointPairIterator.java

       * and updates {@link #successorIterator} to iterate through the successors of {@link #node}.
       */
      final boolean advance() {
        checkState(!successorIterator.hasNext());
        if (!nodeIterator.hasNext()) {
          return false;
        }
        node = nodeIterator.next();
        successorIterator = graph.successors(node).iterator();
        return true;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/IncidentEdgeSet.java

        throw new UnsupportedOperationException();
      }
    
      @Override
      public int size() {
        if (graph.isDirected()) {
          return graph.inDegree(node)
              + graph.outDegree(node)
              - (graph.successors(node).contains(node) ? 1 : 0);
        } else {
          return graph.adjacentNodes(node).size();
        }
      }
    
      @Override
      public boolean contains(@CheckForNull Object obj) {
        if (!(obj instanceof EndpointPair)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
Back to top