Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 99 for nodes (0.93 sec)

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

        ComparableSubClass node8 = new ComparableSubClass(8);
    
        graph.addNode(node4);
        graph.addNode(node2);
        graph.addNode(node6);
        graph.addNode(node8);
    
        assertThat(graph.nodeOrder().comparator()).isEqualTo(Ordering.natural());
        assertThat(graph.nodes()).containsExactly(node2, node4, node6, node8).inOrder();
      }
    
      private static void addNodes(MutableGraph<Integer> graph) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/ElementOrderTest.java

        ComparableSubClass node8 = new ComparableSubClass(8);
    
        graph.addNode(node4);
        graph.addNode(node2);
        graph.addNode(node6);
        graph.addNode(node8);
    
        assertThat(graph.nodeOrder().comparator()).isEqualTo(Ordering.natural());
        assertThat(graph.nodes()).containsExactly(node2, node4, node6, node8).inOrder();
      }
    
      private static void addNodes(MutableGraph<Integer> graph) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K 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. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        for (Integer node : graph.nodes()) {
          assertThat(graph.adjacentNodes(node)).isEqualTo(asGraph.adjacentNodes(node));
          assertThat(graph.predecessors(node)).isEqualTo(asGraph.predecessors(node));
          assertThat(graph.successors(node)).isEqualTo(asGraph.successors(node));
          assertThat(graph.degree(node)).isEqualTo(asGraph.degree(node));
          assertThat(graph.inDegree(node)).isEqualTo(asGraph.inDegree(node));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 18:35:19 GMT 2024
    - 20K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          assertThat(network.nodes()).isEmpty();
          assertThat(network.edges()).isEmpty();
          AbstractNetworkTest.validateNetwork(network);
    
          while (network.nodes().size() < NUM_NODES) {
            network.addNode(gen.nextInt(NODE_POOL_SIZE));
          }
          ArrayList<Integer> nodeList = new ArrayList<>(network.nodes());
          for (int i = 0; i < NUM_EDGES; ++i) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

            assertThat(graph.predecessors(node)).hasSize(graph.inDegree(node));
            assertThat(graph.successors(node)).hasSize(graph.outDegree(node));
          } else {
            int selfLoopCount = graph.adjacentNodes(node).contains(node) ? 1 : 0;
            assertThat(graph.degree(node)).isEqualTo(graph.adjacentNodes(node).size() + selfLoopCount);
    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)
  7. android/guava/src/com/google/common/graph/Traverser.java

       *   <li>Nodes being visited multiple times (if multiple paths exist from any start node to any
       *       node reachable from any start node)
       * </ul>
       *
       * <p><b>Performance notes</b>
       *
       * <ul>
       *   <li>Traversals require <i>O(n)</i> time (where <i>n</i> is the number of nodes reachable from
       *       the start node).
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 30 20:12:45 GMT 2023
    - 19.8K bytes
    - Viewed (0)
  8. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/NetworkBuilder.java

     *
     * <p>A {@code Network} built by this class has the following default properties:
     *
     * <ul>
     *   <li>does not allow parallel edges
     *   <li>does not allow self-loops
     *   <li>orders {@link Network#nodes()} and {@link Network#edges()} in the order in which the
     *       elements were added (insertion order)
     * </ul>
     *
     * <p>{@code Network}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
    - 7.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/ValueGraph.java

      int outDegree(N node);
    
      /**
       * Returns true if there is an edge that directly connects {@code nodeU} to {@code nodeV}. This is
       * equivalent to {@code nodes().contains(nodeU) && successors(nodeU).contains(nodeV)}.
       *
       * <p>In an undirected graph, this is equal to {@code hasEdgeConnecting(nodeV, nodeU)}.
       *
       * @since 23.0
       */
      @Override
      boolean hasEdgeConnecting(N nodeU, N nodeV);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
Back to top