Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for n1 (0.33 sec)

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

        addEdge(N1, N1, E11);
        assertThat(network.successors(N1)).containsExactly(N1);
        addEdge(N2, N1, E12);
        assertThat(network.successors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void degree_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.degree(N1)).isEqualTo(2);
        addEdge(N1, N2, E12);
        assertThat(network.degree(N1)).isEqualTo(3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        putEdge(N1, N2);
        assertThat(graph.predecessors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void successors_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.successors(N1)).containsExactly(N1);
        putEdge(N2, N1);
        assertThat(graph.successors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void incidentEdges_selfLoop() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N1, E11);
        assertThat(network.degree(N1)).isEqualTo(2);
        addEdge(N1, N2, E12);
        assertThat(network.degree(N1)).isEqualTo(3);
      }
    
      @Test
      public void inDegree_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.inDegree(N1)).isEqualTo(1);
        addEdge(N4, N1, E41);
        assertThat(network.inDegree(N1)).isEqualTo(2);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        addEdge(N1, N1, E11);
        assertThat(network.degree(N1)).isEqualTo(2);
        addEdge(N1, N2, E12);
        assertThat(network.degree(N1)).isEqualTo(3);
      }
    
      @Test
      public void inDegree_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.inDegree(N1)).isEqualTo(1);
        addEdge(N4, N1, E41);
        assertThat(network.inDegree(N1)).isEqualTo(2);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        putEdge(N1, N2);
        assertThat(graph.predecessors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void successors_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.successors(N1)).containsExactly(N1);
        putEdge(N2, N1);
        assertThat(graph.successors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void incidentEdges_selfLoop() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

        addEdge(N1, N1, E11);
        addEdge(N1, N1, E11_A);
        addEdge(N1, N2, E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E11_A));
        assertThat(network.edgesConnecting(N1, N1)).containsExactly(E11);
        assertThat(network.edgesConnecting(N1, N2)).containsExactly(E12);
        assertTrue(networkAsMutableNetwork.removeEdge(E11));
        assertThat(network.edgesConnecting(N1, N1)).isEmpty();
    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/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N1, E11);
        assertThat(network.successors(N1)).containsExactly(N1);
        addEdge(N2, N1, E12);
        assertThat(network.successors(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void degree_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.degree(N1)).isEqualTo(2);
        addEdge(N1, N2, E12);
        assertThat(network.degree(N1)).isEqualTo(3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/graph/GraphsTest.java

        directedGraph.putEdgeValue(N1, N1, E11);
        directedGraph.putEdgeValue(N3, N4, E34);
    
        MutableValueGraph<Integer, String> expectedTranspose =
            ValueGraphBuilder.directed().allowsSelfLoops(true).build();
        expectedTranspose.putEdgeValue(N3, N1, E13);
        expectedTranspose.putEdgeValue(N1, N3, E31);
        expectedTranspose.putEdgeValue(N2, N1, E12);
        expectedTranspose.putEdgeValue(N1, N1, E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  10. internal/ioutil/ioutil.go

    	n = len(p)
    	var n1 int
    	if w.skipBytes > 0 {
    		if w.skipBytes >= int64(len(p)) {
    			w.skipBytes -= int64(len(p))
    			return n, nil
    		}
    		p = p[w.skipBytes:]
    		w.skipBytes = 0
    	}
    	if w.wLimit == 0 {
    		return n, nil
    	}
    	if w.wLimit < int64(len(p)) {
    		n1, err = w.Writer.Write(p[:w.wLimit])
    		w.wLimit -= int64(n1)
    		return n, err
    	}
    	n1, err = w.Writer.Write(p)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 10.9K bytes
    - Viewed (0)
Back to top