Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for addNode (0.1 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        }
      }
    
      @Override
      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        }
      }
    
      @Override
      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2));
        addNode(N1);
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        addNode(N1);
        addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2));
        addNode(N1);
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Override
      @Test
      public void adjacentNodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        Set<Integer> adjacentNodes = graph.adjacentNodes(N1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(graphAsMutableGraph.addNode(N1)).isTrue();
        assertThat(graph.nodes()).contains(N1);
      }
    
      @Test
      public void addNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addNode(N1);
        ImmutableSet<Integer> nodes = ImmutableSet.copyOf(graph.nodes());
        assertThat(graphAsMutableGraph.addNode(N1)).isFalse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

          assertThat(network.adjacentEdges(E12)).containsExactlyElementsIn(adjacentEdges);
        }
      }
    
      @Override
      @Test
      public void edgesConnecting_checkReturnedSetMutability() {
        addNode(N1);
        addNode(N2);
        Set<String> edgesConnecting = network.edgesConnecting(N1, N2);
        assertThrows(UnsupportedOperationException.class, () -> edgesConnecting.add(E23));
        addEdge(N1, N2, E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. 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,
          @CheckForNull Node<K, V> nextSibling) {
        Node<K, V> node = new Node<>(key, value);
        if (head == null) { // empty list
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/GraphsTest.java

        MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(false).build();
        directedGraph.putEdge(N1, N2);
        directedGraph.putEdge(N1, N3);
        directedGraph.putEdge(N2, N3);
        directedGraph.addNode(N4);
    
        MutableGraph<Integer> expectedClosure = GraphBuilder.directed().allowsSelfLoops(true).build();
        expectedClosure.putEdge(N1, N1);
        expectedClosure.putEdge(N1, N2);
        expectedClosure.putEdge(N1, N3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top