Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for ImmutableGraph (0.17 sec)

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

     * you should use the non-mutating {@link Graph} interface, or an {@link ImmutableGraph}.
     *
     * <p>You can create an immutable copy of an existing {@code Graph} using {@link
     * ImmutableGraph#copyOf(Graph)}:
     *
     * <pre>{@code
     * ImmutableGraph<Integer> immutableGraph = ImmutableGraph.copyOf(graph);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableGraph} do not implement {@link MutableGraph} (obviously!) and are
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

       *
       * @since 33.1.0 (present with return type {@code Graph} since 20.0)
       */
      // TODO(b/31438252): Consider potential optimizations for this algorithm.
      public static <N> ImmutableGraph<N> transitiveClosure(Graph<N> graph) {
        ImmutableGraph.Builder<N> transitiveClosure =
            GraphBuilder.from(graph).allowsSelfLoops(true).<N>immutable();
        // Every node is, at a minimum, reachable from itself. Since the resulting transitive closure
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableGraph.copyOf(graph));
    
        String graphString = graph.toString();
        assertThat(graphString).contains("isDirected: " + graph.isDirected());
        assertThat(graphString).contains("allowsSelfLoops: " + graph.allowsSelfLoops());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableGraph.copyOf(graph));
    
        String graphString = graph.toString();
        assertThat(graphString).contains("isDirected: " + graph.isDirected());
        assertThat(graphString).contains("allowsSelfLoops: " + graph.allowsSelfLoops());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/graph/ValueGraph.java

     * ImmutableValueGraph}.
     *
     * <p>You can create an immutable copy of an existing {@code ValueGraph} using {@link
     * ImmutableValueGraph#copyOf(ValueGraph)}:
     *
     * <pre>{@code
     * ImmutableValueGraph<Integer, Double> immutableGraph = ImmutableValueGraph.copyOf(graph);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableValueGraph} do not implement {@link MutableValueGraph}
     * (obviously!) and are contractually guaranteed to be unmodifiable and thread-safe.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/Network.java

     * ImmutableNetwork}.
     *
     * <p>You can create an immutable copy of an existing {@code Network} using {@link
     * ImmutableNetwork#copyOf(Network)}:
     *
     * <pre>{@code
     * ImmutableNetwork<Integer, MyEdge> immutableGraph = ImmutableNetwork.copyOf(network);
     * }</pre>
     *
     * <p>Instances of {@link ImmutableNetwork} do not implement {@link MutableNetwork} (obviously!) and
     * are contractually guaranteed to be unmodifiable and thread-safe.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 21.1K bytes
    - Viewed (0)
Back to top