Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 54 for allowsSelfLoops (0.37 sec)

  1. guava/src/com/google/common/graph/AbstractNetwork.java

          }
    
          @Override
          public boolean isDirected() {
            return AbstractNetwork.this.isDirected();
          }
    
          @Override
          public boolean allowsSelfLoops() {
            return AbstractNetwork.this.allowsSelfLoops();
          }
    
          @Override
          public Set<N> adjacentNodes(N node) {
            return AbstractNetwork.this.adjacentNodes(node);
          }
    
          @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/ImmutableGraph.java

         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         */
        @CanIgnoreReturnValue
        public Builder<N> putEdge(N nodeU, N nodeV) {
          mutableGraph.putEdge(nodeU, nodeV);
          return this;
        }
    
        /**
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/ValueGraphTest.java

        assertThat(graph.incidentEdgeOrder()).isEqualTo(asGraph.incidentEdgeOrder());
        assertThat(graph.isDirected()).isEqualTo(asGraph.isDirected());
        assertThat(graph.allowsSelfLoops()).isEqualTo(asGraph.allowsSelfLoops());
    
        Network<Integer, EndpointPair<Integer>> asNetwork = graph.asNetwork();
        AbstractNetworkTest.validateNetwork(asNetwork);
        assertThat(graph.nodes()).isEqualTo(asNetwork.nodes());
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         */
        @CanIgnoreReturnValue
        public ImmutableValueGraph.Builder<N, V> putEdgeValue(N nodeU, N nodeV, V value) {
          mutableValueGraph.putEdgeValue(nodeU, nodeV, value);
          return this;
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        String graphString = graph.toString();
        assertThat(graphString).contains("isDirected: " + graph.isDirected());
        assertThat(graphString).contains("allowsSelfLoops: " + graph.allowsSelfLoops());
    
        int nodeStart = graphString.indexOf("nodes:");
        int edgeStart = graphString.indexOf("edges:");
        String nodeString = graphString.substring(nodeStart, edgeStart);
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/AbstractBaseGraph.java

          @Override
          public boolean allowsParallelEdges() {
            return false; // Graph doesn't allow parallel edges
          }
    
          @Override
          public boolean allowsSelfLoops() {
            return AbstractBaseGraph.this.allowsSelfLoops();
          }
    
          @Override
          public ElementOrder<N> nodeOrder() {
            return AbstractBaseGraph.this.nodeOrder();
          }
    
          @Override
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 07 15:57:03 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/MutableNetwork.java

       *     connect {@code nodeU} to {@code nodeV}
       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsParallelEdges()} or {@link #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      boolean addEdge(N nodeU, N nodeV, E edge);
    
      /**
       * Adds {@code edge} connecting {@code endpoints}. In an undirected network, {@code edge} will
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/StandardMutableNetwork.java

              !(connectionsU != null && connectionsU.successors().contains(nodeV)),
              PARALLEL_EDGES_NOT_ALLOWED,
              nodeU,
              nodeV);
        }
        boolean isSelfLoop = nodeU.equals(nodeV);
        if (!allowsSelfLoops()) {
          checkArgument(!isSelfLoop, SELF_LOOPS_NOT_ALLOWED, nodeU);
        }
    
        if (connectionsU == null) {
          connectionsU = addNodeInternal(nodeU);
        }
        connectionsU.addOutEdge(edge, nodeV);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/GraphConstants.java

      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 "
              + "that allows self-loops, call allowsSelfLoops(true) on the Builder.";
      static final String NOT_AVAILABLE_ON_UNDIRECTED =
          "Cannot call source()/target() on a EndpointPair from an undirected graph. Consider calling "
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sat Jan 18 02:54:30 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/ImmutableValueGraph.java

         *
         * @return this {@code Builder} object
         * @throws IllegalArgumentException if the introduction of the edge would violate {@link
         *     #allowsSelfLoops()}
         */
        @CanIgnoreReturnValue
        public ImmutableValueGraph.Builder<N, V> putEdgeValue(N nodeU, N nodeV, V value) {
          mutableValueGraph.putEdgeValue(nodeU, nodeV, value);
          return this;
        }
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
Back to top