Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 64 for n2 (0.15 sec)

  1. android/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 26 12:43:10 GMT 2024
    - Last Modified: Thu Jun 22 19:09:27 GMT 2017
    - 4.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactly(N2);
        assertThat(graph.successors(N2)).containsExactly(N1);
      }
    
      @Test
      public void incidentEdges_oneEdge() {
        putEdge(N1, N2);
        EndpointPair<Integer> expectedEndpoints = EndpointPair.unordered(N1, N2);
        assertThat(graph.incidentEdges(N1)).containsExactly(expectedEndpoints);
        assertThat(graph.incidentEdges(N2)).containsExactly(expectedEndpoints);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  3. 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;
          }
          return BigInteger.valueOf(result);
    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)
  4. internal/s3select/progress.go

    	return &pr, nil
    }
    
    type nopReadCloser struct {
    	fn func()
    }
    
    func (n2 *nopReadCloser) Read(p []byte) (n int, err error) {
    	panic("should not be called")
    }
    
    func (n2 *nopReadCloser) Close() error {
    	if n2.fn != nil {
    		n2.fn()
    	}
    	n2.fn = nil
    	return nil
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Oct 18 15:44:36 GMT 2021
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java

        network.addEdge(N1, N2, E12);
        assertThat(networkForTest.edgesConnecting(N1, N2)).containsExactly(E12);
        assertThat(networkForTest.edgesConnecting(N1, N1)).containsExactly(E11);
      }
    
      @Test
      public void edgesConnecting_parallelEdges() {
        network.addEdge(N1, N2, E12);
        network.addEdge(N1, N2, E12_A);
        network.addEdge(N2, N1, E21);
        if (edgeType == EdgeType.DIRECTED) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 7.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(network.adjacentNodes(N2)).isEmpty();
        assertThat(network.predecessors(N2)).isEmpty();
        assertThat(network.successors(N2)).isEmpty();
        assertThat(network.incidentEdges(N2)).isEmpty();
        assertThat(network.inEdges(N2)).isEmpty();
        assertThat(network.outEdges(N2)).isEmpty();
        assertThat(network.adjacentNodes(N4)).isEmpty();
        assertThat(network.predecessors(N4)).isEmpty();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 33K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        assertThat(network.adjacentNodes(N2)).isEmpty();
        assertThat(network.predecessors(N2)).isEmpty();
        assertThat(network.successors(N2)).isEmpty();
        assertThat(network.incidentEdges(N2)).isEmpty();
        assertThat(network.inEdges(N2)).isEmpty();
        assertThat(network.outEdges(N2)).isEmpty();
        assertThat(network.adjacentNodes(N4)).isEmpty();
        assertThat(network.predecessors(N4)).isEmpty();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 32.7K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/graph/GraphsTest.java

        expectedClosure.putEdge(N2, N1);
        expectedClosure.putEdge(N2, N2);
        expectedClosure.putEdge(N2, N3);
        expectedClosure.putEdge(N2, N4);
        expectedClosure.putEdge(N3, N1);
        expectedClosure.putEdge(N3, N2);
        expectedClosure.putEdge(N3, N3);
        expectedClosure.putEdge(N3, N4);
        expectedClosure.putEdge(N4, N1);
        expectedClosure.putEdge(N4, N2);
        expectedClosure.putEdge(N4, N3);
        expectedClosure.putEdge(N4, N4);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N2, E12);
        assertThat(successors).containsExactlyElementsIn(network.successors(N1));
      }
    
      @Test
      public void edges_containsOrderMismatch() {
        addEdge(N1, N2, E12);
        EndpointPair<Integer> endpointsN1N2 = EndpointPair.unordered(N1, N2);
        EndpointPair<Integer> endpointsN2N1 = EndpointPair.unordered(N2, N1);
        assertThat(network.asGraph().edges()).doesNotContain(endpointsN1N2);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

        putEdge(N1, N2);
        assertThat(graph.successors(N1)).containsExactly(N2);
        // Edge direction handled correctly
        assertThat(graph.successors(N2)).isEmpty();
      }
    
      @Test
      public void incidentEdges_oneEdge() {
        putEdge(N1, N2);
        EndpointPair<Integer> expectedEndpoints = EndpointPair.ordered(N1, N2);
        assertThat(graph.incidentEdges(N1)).containsExactly(expectedEndpoints);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
Back to top