Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for removeNode (0.17 sec)

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

        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @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);
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 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();
          }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 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();
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      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);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

      }
    
      @Test
      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);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @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);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        for (Range<Integer> rangeToPut : RANGES) {
          for (Range<Integer> rangeToRemove : RANGES) {
            Map<Integer, Integer> model = Maps.newHashMap();
            putModel(model, rangeToPut, 1);
            removeModel(model, rangeToRemove);
            RangeMap<Integer, Integer> test = TreeRangeMap.create();
            test.put(rangeToPut, 1);
            test.remove(rangeToRemove);
            verify(model, test);
          }
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

        for (Range<Integer> rangeToPut : RANGES) {
          for (Range<Integer> rangeToRemove : RANGES) {
            Map<Integer, Integer> model = Maps.newHashMap();
            putModel(model, rangeToPut, 1);
            removeModel(model, rangeToRemove);
            RangeMap<Integer, Integer> test = TreeRangeMap.create();
            test.put(rangeToPut, 1);
            test.remove(rangeToRemove);
            verify(model, test);
          }
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 33.2K bytes
    - Viewed (0)
Back to top