Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for allowsParallelEdges (3.52 sec)

  1. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  3. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  4. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  5. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/GraphConstants.java

              + "edgesConnecting() instead.";
      static final String PARALLEL_EDGES_NOT_ALLOWED =
          "Nodes %s and %s are already connected by a different edge. To construct a graph "
              + "that allows parallel edges, call allowsParallelEdges(true) on the Builder.";
      static final String SELF_LOOPS_NOT_ALLOWED =
          "Cannot add self-loop edge on node %s, as self-loops are not allowed. To construct a graph "
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/GraphConstants.java

              + "edgesConnecting() instead.";
      static final String PARALLEL_EDGES_NOT_ALLOWED =
          "Nodes %s and %s are already connected by a different edge. To construct a graph "
              + "that allows parallel edges, call allowsParallelEdges(true) on the Builder.";
      static final String SELF_LOOPS_NOT_ALLOWED =
          "Cannot add self-loop edge on node %s, as self-loops are not allowed. To construct a graph "
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      /** Returns a string representation of this network. */
      @Override
      public String toString() {
        return "isDirected: "
            + isDirected()
            + ", allowsParallelEdges: "
            + allowsParallelEdges()
            + ", allowsSelfLoops: "
            + allowsSelfLoops()
            + ", nodes: "
            + nodes()
            + ", edges: "
            + edgeIncidentNodesMap(this);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/AbstractNetwork.java

      }
    
      /** Returns a string representation of this network. */
      @Override
      public String toString() {
        return "isDirected: "
            + isDirected()
            + ", allowsParallelEdges: "
            + allowsParallelEdges()
            + ", allowsSelfLoops: "
            + allowsSelfLoops()
            + ", nodes: "
            + nodes()
            + ", edges: "
            + edgeIncidentNodesMap(this);
      }
    
      /**
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Mar 13 18:17:09 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top