Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for putEdge (0.04 seconds)

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

       *
       * {@snippet :
       * static final ImmutableGraph<Country> COUNTRY_ADJACENCY_GRAPH =
       *     GraphBuilder.undirected()
       *         .<Country>immutable()
       *         .putEdge(FRANCE, GERMANY)
       *         .putEdge(FRANCE, BELGIUM)
       *         .putEdge(GERMANY, BELGIUM)
       *         .addNode(ICELAND)
       *         .build();
       * }
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/GraphBuilder.java

     * graph.putEdge("bread", "bread");
     * graph.putEdge("chocolate", "peanut butter");
     * graph.putEdge("peanut butter", "jelly");
     *
     * // Building an immutable graph
     * ImmutableGraph<String> immutableGraph =
     *     GraphBuilder.undirected()
     *         .allowsSelfLoops(true)
     *         .<String>immutable()
     *         .putEdge("bread", "bread")
     *         .putEdge("chocolate", "peanut butter")
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/graph/MutableGraph.java

       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      boolean putEdge(N nodeU, N nodeV);
    
      /**
       * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code
       * endpoints}) if one is not already present.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Mar 11 01:10:31 GMT 2026
    - 3.8K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/graph/GraphsTest.java

        expectedClosure.putEdge(N2, N2);
        expectedClosure.putEdge(N2, N3);
        expectedClosure.putEdge(N2, N4);
        expectedClosure.putEdge(N3, N1);
        expectedClosure.putEdge(N3, N2);
        expectedClosure.putEdge(N3, N3);
        expectedClosure.putEdge(N3, N4);
        expectedClosure.putEdge(N4, N1);
        expectedClosure.putEdge(N4, N2);
        expectedClosure.putEdge(N4, N3);
        expectedClosure.putEdge(N4, N4);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:06 GMT 2026
    - 30.1K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/graph/Graphs.java

          // add each node explicitly to include isolated nodes
          transitiveClosure.addNode(node);
          for (N reachableNode : getReachableNodes(graph, node, strategy)) {
            transitiveClosure.putEdge(node, reachableNode);
          }
        }
        return transitiveClosure.build();
      }
    
      /**
       * Equivalent to {@code transitiveClosure(graph, ADD_SELF_LOOPS_ALWAYS)}. Callers should look at
    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