Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for expectedEdgeCount (0.11 sec)

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

      /**
       * Specifies the expected number of edges in the network.
       *
       * @throws IllegalArgumentException if {@code expectedEdgeCount} is negative
       */
      @CanIgnoreReturnValue
      public NetworkBuilder<N, E> expectedEdgeCount(int expectedEdgeCount) {
        this.expectedEdgeCount = Optional.of(checkNonNegative(expectedEdgeCount));
        return this;
      }
    
      /**
    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. guava-tests/test/com/google/common/graph/GraphsTest.java

      }
    
      @Test
      public void createDirected_expectedEdgeCount() {
        MutableNetwork<Integer, String> directedGraph =
            NetworkBuilder.directed().expectedEdgeCount(EDGE_COUNT).build();
        assertThat(directedGraph.addEdge(N1, N2, E12)).isTrue();
        assertThat(directedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardNetwork.java

        this(
            builder,
            builder.nodeOrder.<N, NetworkConnections<N, E>>createMap(
                builder.expectedNodeCount.or(DEFAULT_NODE_COUNT)),
            builder.edgeOrder.<E, N>createMap(builder.expectedEdgeCount.or(DEFAULT_EDGE_COUNT)));
      }
    
      /**
       * Constructs a graph with the properties specified in {@code builder}, initialized with the given
       * node and edge maps.
       */
      StandardNetwork(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/StandardNetwork.java

        this(
            builder,
            builder.nodeOrder.<N, NetworkConnections<N, E>>createMap(
                builder.expectedNodeCount.or(DEFAULT_NODE_COUNT)),
            builder.edgeOrder.<E, N>createMap(builder.expectedEdgeCount.or(DEFAULT_EDGE_COUNT)));
      }
    
      /**
       * Constructs a graph with the properties specified in {@code builder}, initialized with the given
       * node and edge maps.
       */
      StandardNetwork(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top