Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for expectedNodeCount (0.43 sec)

  1. guava-tests/test/com/google/common/graph/PackageSanityTests.java

      private static final AbstractGraphBuilder<?> GRAPH_BUILDER_A =
          GraphBuilder.directed().expectedNodeCount(10);
      private static final AbstractGraphBuilder<?> GRAPH_BUILDER_B =
          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A =
          GraphBuilder.directed().<String>immutable().addNode("A").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)
  2. android/guava/src/com/google/common/graph/NetworkBuilder.java

      /**
       * Specifies the expected number of nodes in the network.
       *
       * @throws IllegalArgumentException if {@code expectedNodeCount} is negative
       */
      @CanIgnoreReturnValue
      public NetworkBuilder<N, E> expectedNodeCount(int expectedNodeCount) {
        this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
        return this;
      }
    
      /**
       * Specifies the expected number of edges in the network.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

      /**
       * Specifies the expected number of nodes in the graph.
       *
       * @throws IllegalArgumentException if {@code expectedNodeCount} is negative
       */
      @CanIgnoreReturnValue
      public ValueGraphBuilder<N, V> expectedNodeCount(int expectedNodeCount) {
        this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
        return this;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/GraphBuilder.java

      /**
       * Specifies the expected number of nodes in the graph.
       *
       * @throws IllegalArgumentException if {@code expectedNodeCount} is negative
       */
      @CanIgnoreReturnValue
      public GraphBuilder<N> expectedNodeCount(int expectedNodeCount) {
        this.expectedNodeCount = Optional.of(checkNonNegative(expectedNodeCount));
        return this;
      }
    
      /**
       * Specifies the order of iteration for the elements of {@link Graph#nodes()}.
    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)
  5. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

      private static final AbstractGraphBuilder<?> GRAPH_BUILDER_A =
          GraphBuilder.directed().expectedNodeCount(10);
      private static final AbstractGraphBuilder<?> GRAPH_BUILDER_B =
          ValueGraphBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
      private static final ImmutableGraph<String> IMMUTABLE_GRAPH_A =
          GraphBuilder.directed().<String>immutable().addNode("A").build();
    Java
    - Registered: Fri May 03 12:43:13 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/GraphsTest.java

        assertThat(undirectedMultigraph.edgesConnecting(N1, N2))
            .isEqualTo(ImmutableSet.of(E12, E12_A, E21));
      }
    
      @Test
      public void createDirected_expectedNodeCount() {
        MutableNetwork<Integer, String> directedGraph =
            NetworkBuilder.directed().expectedNodeCount(NODE_COUNT).build();
        assertThat(directedGraph.addEdge(N1, N2, E12)).isTrue();
        assertThat(directedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/GraphsTest.java

        assertThat(undirectedMultigraph.edgesConnecting(N1, N2))
            .isEqualTo(ImmutableSet.of(E12, E12_A, E21));
      }
    
      @Test
      public void createDirected_expectedNodeCount() {
        MutableNetwork<Integer, String> directedGraph =
            NetworkBuilder.directed().expectedNodeCount(NODE_COUNT).build();
        assertThat(directedGraph.addEdge(N1, N2, E12)).isTrue();
        assertThat(directedGraph.edgesConnecting(N1, N2)).isEqualTo(ImmutableSet.of(E12));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/Graphs.java

       */
      public static <N> MutableGraph<N> inducedSubgraph(Graph<N> graph, Iterable<? extends N> nodes) {
        MutableGraph<N> subgraph =
            (nodes instanceof Collection)
                ? GraphBuilder.from(graph).expectedNodeCount(((Collection) nodes).size()).build()
                : GraphBuilder.from(graph).build();
        for (N node : nodes) {
          subgraph.addNode(node);
        }
        for (N node : subgraph.nodes()) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/AbstractGraphBuilder.java

      final boolean directed;
      boolean allowsSelfLoops = false;
      ElementOrder<N> nodeOrder = ElementOrder.insertion();
      ElementOrder<N> incidentEdgeOrder = ElementOrder.unordered();
    
      Optional<Integer> expectedNodeCount = Optional.absent();
    
      /**
       * Creates a new instance with the specified edge directionality.
       *
       * @param directed if true, creates an instance for graphs whose edges are each directed; if
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/StandardValueGraph.java

      StandardValueGraph(AbstractGraphBuilder<? super N> builder) {
        this(
            builder,
            builder.nodeOrder.<N, GraphConnections<N, V>>createMap(
                builder.expectedNodeCount.or(DEFAULT_NODE_COUNT)),
            0L);
      }
    
      /**
       * Constructs a graph with the properties specified in {@code builder}, initialized with the given
       * node map.
       */
      StandardValueGraph(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top