Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for allowsParallelEdges (0.09 sec)

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

        String networkString = network.toString();
        assertThat(networkString).contains("isDirected: " + network.isDirected());
        assertThat(networkString).contains("allowsParallelEdges: " + network.allowsParallelEdges());
        assertThat(networkString).contains("allowsSelfLoops: " + network.allowsSelfLoops());
    
        int nodeStart = networkString.indexOf("nodes:");
        int edgeStart = networkString.indexOf("edges:");
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/TestUtil.java

      }
    
      static void assertStronglyEquivalent(Network<?, ?> networkA, Network<?, ?> networkB) {
        // Properties not covered by equals()
        assertThat(networkA.allowsParallelEdges()).isEqualTo(networkB.allowsParallelEdges());
        assertThat(networkA.allowsSelfLoops()).isEqualTo(networkB.allowsSelfLoops());
        assertThat(networkA.nodeOrder()).isEqualTo(networkB.nodeOrder());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/NetworkBuilder.java

       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
      public NetworkBuilder<N, E> allowsParallelEdges(boolean allowsParallelEdges) {
        this.allowsParallelEdges = allowsParallelEdges;
        return this;
      }
    
      /**
       * Specifies whether the network will allow self-loops (edges that connect a node to itself).
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsParallelEdges()).isFalse();
    
        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
    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/AbstractStandardDirectedNetworkTest.java

        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsParallelEdges()).isFalse();
    
        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsParallelEdges()).isFalse();
    
        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/StandardNetwork.java

          NetworkBuilder<? super N, ? super E> builder,
          Map<N, NetworkConnections<N, E>> nodeConnections,
          Map<E, N> edgeToReferenceNode) {
        this.isDirected = builder.directed;
        this.allowsParallelEdges = builder.allowsParallelEdges;
        this.allowsSelfLoops = builder.allowsSelfLoops;
        this.nodeOrder = builder.nodeOrder.cast();
        this.edgeOrder = builder.edgeOrder.cast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/StandardNetwork.java

          NetworkBuilder<? super N, ? super E> builder,
          Map<N, NetworkConnections<N, E>> nodeConnections,
          Map<E, N> edgeToReferenceNode) {
        this.isDirected = builder.directed;
        this.allowsParallelEdges = builder.allowsParallelEdges;
        this.allowsSelfLoops = builder.allowsSelfLoops;
        this.nodeOrder = builder.nodeOrder.cast();
        this.edgeOrder = builder.edgeOrder.cast();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/PackageSanityTests.java

          GraphBuilder.directed().<String>immutable().addNode("B").build();
    
      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_A =
          NetworkBuilder.directed().allowsParallelEdges(true).expectedNodeCount(10);
      private static final NetworkBuilder<?, ?> NETWORK_BUILDER_B =
          NetworkBuilder.directed().allowsSelfLoops(true).expectedNodeCount(16);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/Network.java

       * an edge connecting node A to node B if this {@link Network} has an edge connecting A to B.
       *
       * <p>If this network {@link #allowsParallelEdges() allows parallel edges}, parallel edges will be
       * treated as if collapsed into a single edge. For example, the {@link #degree(Object)} of a node
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top