Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for NetworkBuilder (0.13 sec)

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

      public static NetworkBuilder<Object, Object> directed() {
        return new NetworkBuilder<>(true);
      }
    
      /** Returns a {@link NetworkBuilder} for building undirected networks. */
      public static NetworkBuilder<Object, Object> undirected() {
        return new NetworkBuilder<>(false);
      }
    
      /**
       * Returns a {@link NetworkBuilder} initialized with all properties queryable from {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

      }
    
      /**
       * Tests that the ImmutableNetwork.Builder doesn't change when the creating NetworkBuilder
       * changes.
       */
      @Test
      @SuppressWarnings("CheckReturnValue")
      public void immutableNetworkBuilder_copiesNetworkBuilder() {
        NetworkBuilder<String, Object> networkBuilder =
            NetworkBuilder.directed()
                .allowsSelfLoops(true)
                .<String>nodeOrder(ElementOrder.<String>natural());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_A =
          NetworkBuilder.directed().allowsParallelEdges(true).expectedNodeCount(10);
      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_B =
          NetworkBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_A =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

      Network<Integer, String> createGraph() {
        networkBuilder =
            NetworkBuilder.directed()
                .allowsSelfLoops(allowsSelfLoops)
                .allowsParallelEdges(allowsParallelEdges)
                .nodeOrder(nodeOrder)
                .edgeOrder(edgeOrder)
                .immutable();
    
        return networkBuilder.build();
      }
    
      @Override
      void addNode(Integer n) {
        networkBuilder.addNode(n);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
      public void undirectedNetwork() {
        testNetworkMutation(NetworkBuilder.undirected());
      }
    
      private static void testNetworkMutation(NetworkBuilder<? super Integer, Object> networkBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/ElementOrderTest.java

        MutableNetwork<Integer, String> network =
            NetworkBuilder.directed().edgeOrder(unordered()).build();
    
        assertThat(network.edgeOrder()).isEqualTo(unordered());
        assertThat(network.nodeOrder()).isEqualTo(insertion()); // default
      }
    
      @Test
      public void edgeOrder_insertion() {
        MutableNetwork<Integer, String> network =
            NetworkBuilder.directed().edgeOrder(insertion()).build();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 8.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

      }
    
      /**
       * Tests that the ImmutableNetwork.Builder doesn't change when the creating NetworkBuilder
       * changes.
       */
      @Test
      @SuppressWarnings("CheckReturnValue")
      public void immutableNetworkBuilder_copiesNetworkBuilder() {
        NetworkBuilder<String, Object> networkBuilder =
            NetworkBuilder.directed()
                .allowsSelfLoops(true)
                .<String>nodeOrder(ElementOrder.<String>natural());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/PackageSanityTests.java

      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_A =
          NetworkBuilder.directed().allowsParallelEdges(true).expectedNodeCount(10);
      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_B =
          NetworkBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableNetwork<String, String> IMMUTABLE_NETWORK_A =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

      Network<Integer, String> createGraph() {
        networkBuilder =
            NetworkBuilder.directed()
                .allowsSelfLoops(allowsSelfLoops)
                .allowsParallelEdges(allowsParallelEdges)
                .nodeOrder(nodeOrder)
                .edgeOrder(edgeOrder)
                .immutable();
    
        return networkBuilder.build();
      }
    
      @Override
      void addNode(Integer n) {
        networkBuilder.addNode(n);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

      @Test
      public void directedNetwork() {
        testNetworkMutation(NetworkBuilder.directed());
      }
    
      @Test
      public void undirectedNetwork() {
        testNetworkMutation(NetworkBuilder.undirected());
      }
    
      private static void testNetworkMutation(NetworkBuilder<? super Integer, Object> networkBuilder) {
        Random gen = new Random(42); // Fixed seed so test results are deterministic.
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top