Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for begreep (0.2 sec)

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

      }
    
      @Test
      public void degree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.degree(N1)).isEqualTo(1);
        assertThat(graph.degree(N2)).isEqualTo(1);
      }
    
      @Test
      public void degree_isolatedNode() {
        addNode(N1);
        assertThat(graph.degree(N1)).isEqualTo(0);
      }
    
      @Test
      public void degree_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
    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)
  2. android/guava/src/com/google/common/graph/UndirectedNetworkConnections.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.graph.GraphConstants.EXPECTED_DEGREE;
    
    import com.google.common.collect.BiMap;
    import com.google.common.collect.HashBiMap;
    import com.google.common.collect.ImmutableBiMap;
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/DirectedNetworkConnections.java

        super(inEdgeMap, outEdgeMap, selfLoopCount);
      }
    
      static <N, E> DirectedNetworkConnections<N, E> of() {
        return new DirectedNetworkConnections<>(
            HashBiMap.<E, N>create(EXPECTED_DEGREE), HashBiMap.<E, N>create(EXPECTED_DEGREE), 0);
      }
    
      static <N, E> DirectedNetworkConnections<N, E> ofImmutable(
          Map<E, N> inEdges, Map<E, N> outEdges, int selfLoopCount) {
        return new DirectedNetworkConnections<>(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

      }
    
      @Test
      public void degree_oneEdge() {
        putEdge(N1, N2);
        assertThat(graph.degree(N1)).isEqualTo(1);
        assertThat(graph.degree(N2)).isEqualTo(1);
      }
    
      @Test
      public void degree_isolatedNode() {
        addNode(N1);
        assertThat(graph.degree(N1)).isEqualTo(0);
      }
    
      @Test
      public void degree_nodeNotInGraph() {
        assertNodeNotInGraphErrorMessage(
    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)
  5. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

       */
      protected long edgeCount() {
        long degreeSum = 0L;
        for (N node : nodes()) {
          degreeSum += degree(node);
        }
        // According to the degree sum formula, this is equal to twice the number of edges.
        checkState((degreeSum & 1) == 0);
        return degreeSum >>> 1;
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

            .containsExactly(EndpointPair.ordered(N1, N1), EndpointPair.ordered(N1, N2));
      }
    
      @Test
      public void degree_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.degree(N1)).isEqualTo(2);
        putEdge(N1, N2);
        assertThat(graph.degree(N1)).isEqualTo(3);
      }
    
      @Test
      public void inDegree_selfLoop() {
    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)
  7. android/guava/src/com/google/common/graph/GraphConstants.java

      private GraphConstants() {}
    
      static final int EXPECTED_DEGREE = 2;
    
      static final int DEFAULT_NODE_COUNT = 10;
      static final int DEFAULT_EDGE_COUNT = DEFAULT_NODE_COUNT * EXPECTED_DEGREE;
    
      // Load factor and capacity for "inner" (i.e. per node/edge element) hash sets or maps
      static final float INNER_LOAD_FACTOR = 1.0f;
      static final int INNER_CAPACITY = 2; // ceiling(EXPECTED_DEGREE / INNER_LOAD_FACTOR)
    
      // Error messages
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/AbstractNetwork.java

          @Override
          public Set<N> successors(N node) {
            return AbstractNetwork.this.successors(node);
          }
    
          // DO NOT override the AbstractGraph *degree() implementations.
        };
      }
    
      @Override
      public int degree(N node) {
        if (isDirected()) {
          return IntMath.saturatedAdd(inEdges(node).size(), outEdges(node).size());
        } else {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Mar 13 18:17:09 GMT 2024
    - 10.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/ValueGraph.java

       *
       * @throws IllegalArgumentException if {@code node} is not an element of this graph
       */
      @Override
      int degree(N node);
    
      /**
       * Returns the count of {@code node}'s incoming edges (equal to {@code predecessors(node).size()})
       * in a directed graph. In an undirected graph, returns the {@link #degree(Object)}.
       *
       * <p>If the count is greater than {@code Integer.MAX_VALUE}, returns {@code Integer.MAX_VALUE}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

            .containsExactly(EndpointPair.unordered(N1, N1), EndpointPair.unordered(N1, N2));
      }
    
      @Test
      public void degree_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.degree(N1)).isEqualTo(2);
        putEdge(N1, N2);
        assertThat(graph.degree(N1)).isEqualTo(3);
      }
    
      @Test
      public void inDegree_selfLoop() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
Back to top