Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 131 for nodes (0.15 sec)

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

        AbstractGraphTest.validateGraph(transpose);
    
        for (Integer node : directedGraph.nodes()) {
          assertThat(directedGraph.inDegree(node)).isSameInstanceAs(transpose.outDegree(node));
          assertThat(directedGraph.outDegree(node)).isSameInstanceAs(transpose.inDegree(node));
        }
    
        assertThat(transpose.successors(N1)).doesNotContain(N2);
        directedGraph.putEdge(N2, N1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 24.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

        // whatever ordering the graph's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, GraphConnections<N, V>> nodeConnections = ImmutableMap.builder();
        for (N node : graph.nodes()) {
          nodeConnections.put(node, connectionsOf(graph, node));
        }
        return nodeConnections.buildOrThrow();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

        for (E key : keys) {
          LockGraphNode node = new LockGraphNode(getLockName(key));
          nodes.add(node);
          map.put(key, node);
        }
        // Pre-populate all allowedPriorLocks with nodes of smaller ordinal.
        for (int i = 1; i < numKeys; i++) {
          nodes.get(i).checkAcquiredLocks(Policies.THROW, nodes.subList(0, i));
        }
        // Pre-populate all disallowedPriorLocks with nodes of larger ordinal.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ImmutableNetwork.java

        // whatever ordering the network's nodes do, so ImmutableSortedMap is unnecessary even if the
        // input nodes are sorted.
        ImmutableMap.Builder<N, NetworkConnections<N, E>> nodeConnections = ImmutableMap.builder();
        for (N node : network.nodes()) {
          nodeConnections.put(node, connectionsOf(network, node));
        }
        return nodeConnections.buildOrThrow();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 01 16:30:37 GMT 2022
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        for (Integer node : graph.nodes()) {
          new EqualsTester()
              .addEqualityGroup(
                  graph.predecessors(node), graph.successors(node), graph.adjacentNodes(node))
              .testEquals();
        }
      }
    
      @Override
      @Test
      public void nodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        Set<Integer> nodes = graph.nodes();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  6. maven-compat/src/main/java/org/apache/maven/repository/MetadataGraph.java

            nodes.add(node);
        }
    
        /**
         * find a node by the GAV (metadata)
         *
         * @param md
         */
        public MetadataGraphNode findNode(MavenArtifactMetadata md) {
            for (MetadataGraphNode mgn : nodes) {
                if (mgn.metadata.equals(md)) {
                    return mgn;
                }
            }
    
            MetadataGraphNode node = new MetadataGraphNode(md);
            addNode(node);
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        for (Integer node : graph.nodes()) {
          new EqualsTester()
              .addEqualityGroup(
                  graph.predecessors(node), graph.successors(node), graph.adjacentNodes(node))
              .testEquals();
        }
      }
    
      @Override
      @Test
      public void nodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        Set<Integer> nodes = graph.nodes();
    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)
  8. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

     * with user-defined properties.
     *
     * <p>A {@code ValueGraph} built by this class has the following default properties:
     *
     * <ul>
     *   <li>does not allow self-loops
     *   <li>orders {@link ValueGraph#nodes()} in the order in which the elements were added (insertion
     *       order)
     * </ul>
     *
     * <p>{@code ValueGraph}s built by this class also guarantee that each collection-returning accessor
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedGraphTest.java

      @Override
      @Test
      public void nodes_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        Set<Integer> nodes = graph.nodes();
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> nodes.add(N2));
        addNode(N1);
        assertThat(graph.nodes()).containsExactlyElementsIn(nodes);
      }
    
      @Override
      @Test
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeTraverser.java

      /** Returns the children of the specified node. Must not contain null. */
      public abstract Iterable<T> children(T root);
    
      /**
       * Returns an unmodifiable iterable over the nodes in a tree structure, using pre-order traversal.
       * That is, each node's subtrees are traversed after the node itself is returned.
       *
       * <p>No guarantees are made about the behavior of the traversal when nodes change while iteration
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 8.2K bytes
    - Viewed (0)
Back to top