Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for NetworkBuilder (0.08 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. guava-tests/test/com/google/common/graph/GraphsTest.java

        MutableNetwork<Integer, String> undirectedGraph = NetworkBuilder.undirected().build();
        undirectedGraph.addEdge(N1, N2, E12);
    
        assertThat(transpose(undirectedGraph)).isSameInstanceAs(undirectedGraph);
      }
    
      @Test
      public void transpose_directedNetwork() {
        MutableNetwork<Integer, String> directedGraph =
            NetworkBuilder.directed().allowsParallelEdges(true).allowsSelfLoops(true).build();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  7. 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)
  8. android/guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

      }
    
      private static MutableNetwork<Integer, String> createNetwork(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return NetworkBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return NetworkBuilder.directed().allowsSelfLoops(true).build();
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

      }
    
      private static MutableNetwork<Integer, String> createNetwork(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return NetworkBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return NetworkBuilder.directed().allowsSelfLoops(true).build();
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/Network.java

     * create an instance of one of the built-in implementations of {@code Network}, use the {@link
     * NetworkBuilder} class:
     *
     * <pre>{@code
     * MutableNetwork<Integer, MyEdge> network = NetworkBuilder.directed().build();
     * }</pre>
     *
     * <p>{@link NetworkBuilder#build()} returns an instance of {@link MutableNetwork}, which is a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top