Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 187 for edges (0.18 sec)

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

        assertThat(edges).hasSize(2);
        assertThat(edges).contains(EndpointPair.unordered(N1, N1));
        assertThat(edges).contains(EndpointPair.unordered(N1, N2));
        assertThat(edges).contains(EndpointPair.unordered(N2, N1)); // equal to unordered(N1, N2)
    
        // ordered endpoints not compatible with undirected graph
        assertThat(edges).doesNotContain(EndpointPair.ordered(N1, N2));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/EndpointPairTest.java

        assertThat(edges).hasSize(2);
        assertThat(edges).contains(EndpointPair.unordered(N1, N1));
        assertThat(edges).contains(EndpointPair.unordered(N1, N2));
        assertThat(edges).contains(EndpointPair.unordered(N2, N1)); // equal to unordered(N1, N2)
    
        // ordered endpoints not compatible with undirected graph
        assertThat(edges).doesNotContain(EndpointPair.ordered(N1, N2));
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/NetworkMutationTest.java

          ArrayList<Object> edgeList = new ArrayList<>(network.edges());
    
          assertThat(network.nodes()).hasSize(NUM_NODES);
          assertThat(network.edges()).hasSize(NUM_EDGES);
          AbstractNetworkTest.validateNetwork(network);
    
          Collections.shuffle(edgeList, gen);
          int numEdgesToRemove = gen.nextInt(NUM_EDGES);
          for (int i = 0; i < numEdgesToRemove; ++i) {
            Object edge = edgeList.get(i);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 10 19:42:18 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/MultiEdgesConnecting.java

    import javax.annotation.CheckForNull;
    
    /**
     * A class to represent the set of edges connecting an (implicit) origin node to a target node.
     *
     * <p>The {@link #outEdgeToNode} map allows this class to work on networks with parallel edges. See
     * {@link EdgesConnecting} for a class that is more efficient but forbids parallel edges.
     *
     * @author James Sexton
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Override
      @Test
      public void edges_checkReturnedSetMutability() {
        assume().that(graphIsMutable()).isTrue();
    
        Set<String> edges = network.edges();
        UnsupportedOperationException e =
            assertThrows(UnsupportedOperationException.class, () -> edges.add(E12));
        addEdge(N1, N2, E12);
        assertThat(network.edges()).containsExactlyElementsIn(edges);
      }
    
      @Override
      @Test
    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)
  6. android/guava/src/com/google/common/graph/ValueGraph.java

     *   <li>graphs whose nodes/edges are insertion-ordered, sorted, or unordered
     *   <li>graphs whose edges have associated values
     * </ul>
     *
     * <p>{@code ValueGraph}, as a subtype of {@code Graph}, explicitly does not support parallel edges,
     * and forbids implementations or extensions with parallel edges. If you need parallel edges, use
     * {@link Network}. (You can use a positive {@code Integer} edge value as a loose representation of
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_function_test.cc

        }
    
        // If caller specified all edges, check that we have seen all
        if (is_exact_edges) {
          ASSERT_EQ(e_edges.size() + c_edges.size(), a_edges.size())
              << "Expected edges: " << ToString(e_edges)
              << " Expected Control edges: " << ToString(c_edges)
              << " Actual edges: " << ToString(a_edges)
              << " in fdef: " << fdef.DebugString();
        }
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  8. android/guava-tests/test/com/google/common/graph/ElementOrderTest.java

        assertThat(network.edgeOrder())
            .isEqualTo(ElementOrder.sorted(Ordering.<String>natural().reverse()));
        assertThat(network.edges()).containsExactly("p", "i", "e").inOrder();
        assertThat(network.nodeOrder()).isEqualTo(ElementOrder.insertion()); // default
      }
    
      // Combined node and edge order tests
    
      @Test
      public void nodeOrderUnorderedAndEdgesSorted() {
        MutableNetwork<Integer, String> network =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/NetworkConnections.java

       *
       * <p>In the undirected case, returns {@code null} if {@code isSelfLoop} is true.
       */
      @CanIgnoreReturnValue
      @CheckForNull
      N removeInEdge(E edge, boolean isSelfLoop);
    
      /** Remove {@code edge} from the set of outgoing edges. Returns the former successor node. */
      @CanIgnoreReturnValue
      N removeOutEdge(E edge);
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 26 17:43:39 GMT 2021
    - 2.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/GraphConstants.java

      static final String REUSING_EDGE =
          "Edge %s already exists between the following nodes: %s, "
              + "so it cannot be reused to connect the following nodes: %s.";
      static final String MULTIPLE_EDGES_CONNECTING =
          "Cannot call edgeConnecting() when parallel edges exist between %s and %s. Consider calling "
              + "edgesConnecting() instead.";
      static final String PARALLEL_EDGES_NOT_ALLOWED =
    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)
Back to top