Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for ImmutableGraph (0.27 sec)

  1. android/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);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.1K bytes
    - Viewed (0)
  2. 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() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K bytes
    - Viewed (0)
  3. 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")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  4. 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() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 09 20:24:43 GMT 2020
    - 4.5K 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();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  6. 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();
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Nov 09 19:24:25 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  7. 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() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K 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() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K bytes
    - Viewed (0)
  9. 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)
  10. android/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() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Mar 10 17:54:18 GMT 2020
    - 1.8K bytes
    - Viewed (0)
Back to top