Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for addNodes (0.08 sec)

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

      }
    
      @Test
      public void edgesConnecting_disconnectedNodes() {
        addNode(N1);
        addNode(N2);
        assertThat(network.edgesConnecting(N1, N2)).isEmpty();
      }
    
      @Test
      public void edgesConnecting_nodesNotInGraph() {
        addNode(N1);
        addNode(N2);
        assertNodeNotInGraphErrorMessage(
            assertThrows(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 32.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/Graphs.java

            (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()) {
          for (N successorNode : graph.successors(node)) {
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.putEdge(node, successorNode);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 22.7K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/Graphs.java

            (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()) {
          for (N successorNode : graph.successors(node)) {
            if (subgraph.nodes().contains(successorNode)) {
              subgraph.putEdge(node, successorNode);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Aug 01 00:26:14 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/LinkedListMultimap.java

       * element, or at the end of the list if {@code nextSibling} is null. Note: if {@code nextSibling}
       * is specified, it MUST be for a node for the same {@code key}!
       */
      @CanIgnoreReturnValue
      private Node<K, V> addNode(
          @ParametricNullness K key, @ParametricNullness V value, @Nullable Node<K, V> nextSibling) {
        Node<K, V> node = new Node<>(key, value);
        if (head == null) { // empty list
          head = tail = node;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/TraverserTest.java

          }
        };
      }
    
      private static ImmutableGraph<Character> createSingleRootGraph() {
        MutableGraph<Character> graph = GraphBuilder.directed().build();
        graph.addNode('a');
        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/TraverserTest.java

          }
        };
      }
    
      private static ImmutableGraph<Character> createSingleRootGraph() {
        MutableGraph<Character> graph = GraphBuilder.directed().build();
        graph.addNode('a');
        return ImmutableGraph.copyOf(graph);
      }
    
      private static void assertEqualCharNodes(Iterable<Character> result, String expectedCharacters) {
        assertThat(ImmutableList.copyOf(result))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 47.5K bytes
    - Viewed (0)
  7. tensorflow/c/c_api.cc

                                                     /*consume=*/true);
    
        if (status->status.ok()) {
          // Run shape inference function for newly added node.
          status->status = desc->graph->refiner.AddNode(ret);
        }
        if (status->status.ok()) {
          // Add the node to the name-to-node mapping.
          desc->graph->name_map[ret->name()] = ret;
        } else if (ret != nullptr) {
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue May 13 06:30:43 UTC 2025
    - 102.3K bytes
    - Viewed (0)
Back to top