Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for immutableGraph (0.09 sec)

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

            ? (ImmutableGraph<N>) graph
            : new ImmutableGraph<N>(
                new StandardValueGraph<N, Presence>(
                    GraphBuilder.from(graph), getNodeConnections(graph), graph.edges().size()));
      }
    
      /**
       * Simply returns its argument.
       *
       * @deprecated no need to use this
       */
      @Deprecated
      public static <N> ImmutableGraph<N> copyOf(ImmutableGraph<N> graph) {
        return checkNotNull(graph);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph);
    
        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
        assertThat(immutableGraph).isNotEqualTo(mutableGraph);
      }
    
      @Test
      public void copyOfImmutableGraph_optimized() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph);
    
        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
        assertThat(immutableGraph).isNotEqualTo(mutableGraph);
      }
    
      @Test
      public void copyOfImmutableGraph_optimized() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 4.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A =
          GraphBuilder.directed().<String>immutable().addNode("A").build();
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_B =
          GraphBuilder.directed().<String>immutable().addNode("B").build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/PackageSanityTests.java

          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A =
          GraphBuilder.directed().<String>immutable().addNode("A").build();
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_B =
          GraphBuilder.directed().<String>immutable().addNode("B").build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph.asGraph()).isInstanceOf(ImmutableGraph.class);
        assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableValueGraph).isEqualTo(mutableValueGraph);
    
        mutableValueGraph.addNode("B");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

        return checkNotNull(graph);
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return ElementOrder.stable();
      }
    
      @Override
      public ImmutableGraph<N> asGraph() {
        return new ImmutableGraph<>(this); // safe because the view is effectively immutable
      }
    
      private static <N, V> ImmutableMap<N, GraphConnections<N, V>> getNodeConnections(
          ValueGraph<N, V> graph) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedGraphTest.java

      @Parameters(name = "allowsSelfLoops={0}")
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{false}, {true}});
      }
    
      private final boolean allowsSelfLoops;
      private ImmutableGraph.Builder<Integer> graphBuilder;
    
      public StandardImmutableDirectedGraphTest(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
      }
    
      @Override
      public Graph<Integer> createGraph() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/StandardImmutableUndirectedGraphTest.java

      @Parameters(name = "allowsSelfLoops={0}")
      public static Collection<Object[]> parameters() {
        return Arrays.asList(new Object[][] {{false}, {true}});
      }
    
      private final boolean allowsSelfLoops;
      private ImmutableGraph.Builder<Integer> graphBuilder;
    
      public StandardImmutableUndirectedGraphTest(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
      }
    
      @Override
      public Graph<Integer> createGraph() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 1.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

     * graph.putEdgeValue("San Jose", "San Jose", 0.0);
     * graph.putEdgeValue("San Francisco", "San Jose", 48.4);
     *
     * // Building an immutable value graph
     * ImmutableValueGraph<String, Double> immutableGraph =
     *     ValueGraphBuilder.undirected()
     *         .allowsSelfLoops(true)
     *         .<String, Double>immutable()
     *         .putEdgeValue("San Francisco", "San Francisco", 0.0)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
Back to top