Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 86 for N1 (0.23 sec)

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

        directedGraph.putEdge(N1, N2);
        containsExactlySanityCheck(edges, EndpointPair.ordered(N1, N2));
    
        directedGraph.putEdge(N2, N1);
        containsExactlySanityCheck(edges, EndpointPair.ordered(N1, N2), EndpointPair.ordered(N2, N1));
    
        directedGraph.removeEdge(N1, N2);
        directedGraph.removeEdge(N2, N1);
        containsExactlySanityCheck(edges);
    
        assertThrows(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        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);
      }
    
      @Test
    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)
  3. android/guava/src/com/google/common/graph/EndpointPairIterator.java

       *
       * <pre>
       * Nodes = {N1, N2, N3, N4}
       *    N2           __
       *   /  \         |  |
       * N1----N3      N4__|
       *
       * Visited Nodes = {}
       * EndpointPair [N1, N2] - return
       * EndpointPair [N1, N3] - return
       * Visited Nodes = {N1}
       * EndpointPair [N2, N1] - skip
       * EndpointPair [N2, N3] - return
       * Visited Nodes = {N1, N2}
       * EndpointPair [N3, N1] - skip
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 5K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/NetworkEquivalenceTest.java

        network.addEdge(N1, N1, E11);
    
        MutableNetwork<Integer, String> g2 = createNetwork(oppositeType(edgeType));
        g2.addEdge(N1, N1, E11);
    
        assertThat(network).isNotEqualTo(g2);
      }
    
      // Node/edge sets are the same, but node/edge connections differ.
      @Test
      public void equivalent_connectionsDiffer() {
        network.addEdge(N1, N2, E12);
        network.addEdge(N1, N3, E13);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 5.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
      private static BigInteger oldSlowFactorial(int n1, int n2) {
        assert n1 <= n2;
        if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) {
          // the result will definitely fit into a long
          long result = 1;
          for (int i = n1 + 1; i <= n2; i++) {
            result *= i;
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java

        g1.putEdge(N1, N2);
        g1.putEdge(N3, N1);
    
        // for g2, add 3->1 first, then 1->2
        g2.putEdge(N3, N1);
        g2.putEdge(N1, N2);
    
        assertThat(g1).isEqualTo(g2);
      }
    
      @Test
      public void equivalent_edgeDirectionsDiffer() {
        graph.putEdge(N1, N2);
    
        MutableGraph<Integer> g2 = createGraph(edgeType);
        g2.putEdge(N2, N1);
    
        switch (edgeType) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

       *
       * <p>The default value is {@link ElementOrder#insertion() insertion order}.
       */
      public <N1 extends N> ValueGraphBuilder<N1, V> nodeOrder(ElementOrder<N1> nodeOrder) {
        ValueGraphBuilder<N1, V> newBuilder = cast();
        newBuilder.nodeOrder = checkNotNull(nodeOrder);
        return newBuilder;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 8K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/BigIntegerMathBenchmark.java

        }
      }
    
      /** Returns the product of {@code n1} exclusive through {@code n2} inclusive. */
      private static BigInteger oldSlowFactorial(int n1, int n2) {
        assert n1 <= n2;
        if (IntMath.log2(n2, CEILING) * (n2 - n1) < Long.SIZE - 1) {
          // the result will definitely fit into a long
          long result = 1;
          for (int i = n1 + 1; i <= n2; i++) {
            result *= i;
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/base/MoreObjectsTest.java

      public void testFirstNonNull_withNonNull() {
        String s1 = "foo";
        String s2 = MoreObjects.firstNonNull(s1, "bar");
        assertSame(s1, s2);
    
        Long n1 = 42L;
        Long n2 = MoreObjects.firstNonNull(null, n1);
        assertSame(n1, n2);
    
        Boolean b1 = true;
        Boolean b2 = MoreObjects.firstNonNull(b1, null);
        assertSame(b1, b2);
      }
    
      public void testFirstNonNull_throwsNullPointerException() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 2K bytes
    - Viewed (0)
Back to top