Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for validateGraph (0.1 sec)

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

          AbstractGraphTest.validateGraph(graph);
    
          for (int i = numNodesToRemove; i < NUM_NODES; ++i) {
            assertThat(graph.removeNode(nodeList.get(i))).isTrue();
          }
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes
          AbstractGraphTest.validateGraph(graph);
    
          Collections.shuffle(nodeList, gen);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/GraphMutationTest.java

          AbstractGraphTest.validateGraph(graph);
    
          for (int i = numNodesToRemove; i < NUM_NODES; ++i) {
            assertThat(graph.removeNode(nodeList.get(i))).isTrue();
          }
    
          assertThat(graph.nodes()).isEmpty();
          assertThat(graph.edges()).isEmpty(); // no edges can remain if there's no nodes
          AbstractGraphTest.validateGraph(graph);
    
          Collections.shuffle(nodeList, gen);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 18 16:17:46 UTC 2017
    - 4.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/GraphsTest.java

        Graph<Integer> transpose = transpose(directedGraph);
        assertThat(transpose).isEqualTo(expectedTranspose);
        assertThat(transpose(transpose)).isSameInstanceAs(directedGraph);
        AbstractGraphTest.validateGraph(transpose);
    
        for (Integer node : directedGraph.nodes()) {
          assertThat(directedGraph.inDegree(node)).isSameInstanceAs(transpose.outDegree(node));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        if (graph instanceof MutableGraph) {
          graphAsMutableGraph = (MutableGraph<Integer>) graph;
        }
      }
    
      @After
      public final void validateGraphState() {
        validateGraph(graph);
      }
    
      static <N> void validateGraph(Graph<N> graph) {
        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableGraph.copyOf(graph));
    
        String graphString = graph.toString();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
        assertThat(graph.edges()).isEqualTo(asGraph.edges());
        assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        String nodeString = networkString.substring(nodeStart, edgeStart);
        String edgeString = networkString.substring(edgeStart);
    
        Graph<N> asGraph = network.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(network.nodes()).isEqualTo(asGraph.nodes());
        assertThat(network.edges().size()).isAtLeast(asGraph.edges().size());
        assertThat(network.nodeOrder()).isEqualTo(asGraph.nodeOrder());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertStronglyEquivalent(graph, Graphs.copyOf(graph));
        assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph));
    
        Graph<Integer> asGraph = graph.asGraph();
        AbstractGraphTest.validateGraph(asGraph);
        assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
        assertThat(graph.edges()).isEqualTo(asGraph.edges());
        assertThat(graph.nodeOrder()).isEqualTo(asGraph.nodeOrder());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
Back to top