Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for removeEdge (0.19 sec)

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

        assertThat(graph.removeEdge(2, 1)).isNull();
        assertThat(graph.removeEdge(2, 3)).isEqualTo("valueC");
        assertThat(graph.removeEdge(2, 3)).isNull();
      }
    
      @Test
      public void removeEdge_directed_orderMismatch() {
        graph = ValueGraphBuilder.directed().build();
        graph.putEdgeValue(1, 2, "1->2");
        graph.putEdgeValue(2, 1, "2->1");
        IllegalArgumentException e =
            assertThrows(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(n2InEdges).isEmpty();
        assertThat(n2OutEdges).isEmpty();
      }
    
      @Test
      public void removeEdge_existingEdge() {
        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E12));
        assertFalse(networkAsMutableNetwork.removeEdge(E12));
        assertThat(networkAsMutableNetwork.edges()).doesNotContain(E12);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(n2InEdges).isEmpty();
        assertThat(n2OutEdges).isEmpty();
      }
    
      @Test
      public void removeEdge_existingEdge() {
        assume().that(graphIsMutable()).isTrue();
    
        addEdge(N1, N2, E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E12));
        assertFalse(networkAsMutableNetwork.removeEdge(E12));
        assertThat(networkAsMutableNetwork.edges()).doesNotContain(E12);
    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)
  4. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void removeEdge_existingEdge() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactly(N2);
        assertThat(graph.predecessors(N2)).containsExactly(N1);
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isTrue();
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isFalse();
    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)
  5. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void removeEdge_existingEdge() {
        assume().that(graphIsMutable()).isTrue();
    
        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactly(N2);
        assertThat(graph.predecessors(N2)).containsExactly(N1);
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isTrue();
        assertThat(graphAsMutableGraph.removeEdge(N1, N2)).isFalse();
    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)
  6. maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

            if (cycle != null) {
                // remove edge which introduced cycle
                removeEdge(from, to);
                throw new CycleDetectedException(
                        "Edge between '" + from.label + "' and '" + to.label + "' introduces to cycle in the graph", cycle);
            }
        }
    
        void removeEdge(Vertex from, Vertex to) {
            from.children.remove(to);
            to.parents.remove(from);
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
          for (int i = 0; i < numEdgesToRemove; ++i) {
            Object edge = edgeList.get(i);
            assertThat(network.removeEdge(edge)).isTrue();
          }
    
          assertThat(network.nodes()).hasSize(NUM_NODES);
          assertThat(network.edges()).hasSize(NUM_EDGES - numEdgesToRemove);
          AbstractNetworkTest.validateNetwork(network);
    
    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)
  8. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
          for (int i = 0; i < numEdgesToRemove; ++i) {
            Object edge = edgeList.get(i);
            assertThat(network.removeEdge(edge)).isTrue();
          }
    
          assertThat(network.nodes()).hasSize(NUM_NODES);
          assertThat(network.edges()).hasSize(NUM_EDGES - numEdgesToRemove);
          AbstractNetworkTest.validateNetwork(network);
    
    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)
  9. maven-api-impl/src/test/remote-repo/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar

    getVerticies(); public java.util.Set getLabels(); public Vertex addVertex(String); public void addEdge(String, String) throws CycleDetectedExcepti; public void addEdge(Vertex, Vertex) throws CycleDetectedExcepti; public void removeEdge(String, String); public void removeEdge(Vertex, Vertex); public Vertex getVertex(String); public boolean hasEdge(String, String); public java.util.List getChildLabels(String); public java.util.List getParentLabels(String); public Object clone() throws CloneNotSupportedExc;...
    Archive
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 15:10:38 GMT 2024
    - 164.6K bytes
    - Viewed (0)
Back to top