Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for removeNode (0.07 sec)

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

      @Test
      public void removeNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        putEdge(N4, N1);
        assertThat(graphAsMutableGraph.removeNode(N1)).isTrue();
        assertThat(graphAsMutableGraph.removeNode(N1)).isFalse();
        assertThat(graph.nodes()).containsExactly(N2, N4);
    
        assertThat(graph.adjacentNodes(N2)).isEmpty();
        assertThat(graph.predecessors(N2)).isEmpty();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

            assertThat(network.removeNode(nodeList.get(i))).isTrue();
          }
    
          assertThat(network.nodes()).hasSize(NUM_NODES - numNodesToRemove);
          // Number of edges remaining is unknown (node's incident edges have been removed).
          AbstractNetworkTest.validateNetwork(network);
    
          for (int i = numNodesToRemove; i < NUM_NODES; ++i) {
            assertThat(network.removeNode(nodeList.get(i))).isTrue();
          }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 10 19:42:18 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

            assertThat(network.removeNode(nodeList.get(i))).isTrue();
          }
    
          assertThat(network.nodes()).hasSize(NUM_NODES - numNodesToRemove);
          // Number of edges remaining is unknown (node's incident edges have been removed).
          AbstractNetworkTest.validateNetwork(network);
    
          for (int i = numNodesToRemove; i < NUM_NODES; ++i) {
            assertThat(network.removeNode(nodeList.get(i))).isTrue();
          }
    
    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. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      public void removeNode_existingNode() {
        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        addEdge(N4, N1, E41);
        assertTrue(networkAsMutableNetwork.removeNode(N1));
        assertFalse(networkAsMutableNetwork.removeNode(N1));
        assertThat(networkAsMutableNetwork.nodes()).containsExactly(N2, N4);
        assertThat(networkAsMutableNetwork.edges()).doesNotContain(E12);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/LinkedListMultimap.java

      /**
       * Removes the specified node from the linked list. This method is only intended to be used from
       * the {@code Iterator} classes. See also {@link LinkedListMultimap#removeAllNodes(Object)}.
       */
      private void removeNode(Node<K, V> node) {
        if (node.previous != null) {
          node.previous.next = node.next;
        } else { // node was head
          head = node.next;
        }
        if (node.next != null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 27.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        addNode(N1);
        putEdge(N1, N1);
        assertThat(graphAsMutableGraph.removeNode(N1)).isTrue();
        assertThat(graph.nodes()).isEmpty();
      }
    
      @Test
      public void removeEdge_existingSelfLoopEdge() {
        assume().that(graphIsMutable()).isTrue();
    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. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graphIsMutable()).isTrue();
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        addNode(N1);
        putEdge(N1, N1);
        assertThat(graphAsMutableGraph.removeNode(N1)).isTrue();
        assertThat(graph.nodes()).isEmpty();
      }
    
      @Test
      public void removeEdge_existingSelfLoopEdge() {
        assume().that(graphIsMutable()).isTrue();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addNode(N1);
        addEdge(N1, N1, E11);
        assertThat(networkAsMutableNetwork.removeNode(N1)).isTrue();
        assertThat(network.nodes()).isEmpty();
        assertThat(network.edges()).doesNotContain(E11);
      }
    
      @Test
      public void removeEdge_existingSelfLoopEdge() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addNode(N1);
        addEdge(N1, N1, E11);
        assertThat(networkAsMutableNetwork.removeNode(N1)).isTrue();
        assertThat(network.nodes()).isEmpty();
        assertThat(network.edges()).doesNotContain(E11);
      }
    
      @Test
      public void removeEdge_existingSelfLoopEdge() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addNode(N1);
        addEdge(N1, N1, E11);
        assertThat(networkAsMutableNetwork.removeNode(N1)).isTrue();
        assertThat(network.nodes()).isEmpty();
        assertThat(network.edges()).doesNotContain(E11);
      }
    
      @Test
      public void removeEdge_existingSelfLoopEdge() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top