Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for removeEdge_nodeNotPresent (0.17 sec)

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

        putEdge(N1, N3);
        putEdge(N1, N4);
        assertThat(graphAsMutableGraph.removeEdge(N1, N3)).isTrue();
        assertThat(graph.adjacentNodes(N1)).containsExactly(N2, N4);
      }
    
      @Test
      public void removeEdge_nodeNotPresent() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        assertThat(graphAsMutableGraph.removeEdge(N1, NODE_NOT_IN_GRAPH)).isFalse();
        assertThat(graph.successors(N1)).contains(N2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
Back to top