Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for forGraph (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava/src/com/google/common/graph/Traverser.java

     *   <li>(1) "no" and (2) "no", use {@link #forGraph(SuccessorsFunction)}.
     *   <li>(1) "yes" and (2) "yes", use {@link #forTree(SuccessorsFunction)}.
     *   <li>(1) "yes" and (2) "no", you can use either, but {@code forTree()} will be more efficient.
     *   <li>(1) "no" and (2) "yes", <b><i>neither will work</i></b>, but if you transform your node
     *       objects into a non-recursive form, you can use {@code forGraph()}.
     * </ul>
     *
     * @author Jens Nyman
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 19.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

       * strategy}.
       */
      private static <N> Iterable<N> getReachableNodes(
          Graph<N> graph, N node, TransitiveClosureSelfLoopStrategy strategy) {
        Traverser<N> traverser = Traverser.forGraph(graph);
        switch (strategy) {
          case ADD_SELF_LOOPS_ALWAYS: // always include 'node'
            return traverser.breadthFirst(node);
          case ADD_SELF_LOOPS_FOR_CYCLES: // include 'node' iff there's an incident cycle
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 24.4K bytes
    - Click Count (0)
Back to Top