Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 69 for allowsSelfLoops (0.15 sec)

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

      }
    
      private static MutableGraph<Integer> createGraph(EdgeType edgeType) {
        switch (edgeType) {
          case UNDIRECTED:
            return GraphBuilder.undirected().allowsSelfLoops(true).build();
          case DIRECTED:
            return GraphBuilder.directed().allowsSelfLoops(true).build();
        }
        throw new IllegalStateException("Unexpected edge type: " + edgeType);
      }
    
      private static EdgeType oppositeType(EdgeType edgeType) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

        ImmutableNetwork<String, Integer> emptyNetwork =
            NetworkBuilder.directed()
                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .<String, Integer>immutable()
                .build();
    
        assertThat(emptyNetwork.isDirected()).isTrue();
        assertThat(emptyNetwork.allowsSelfLoops()).isTrue();
        assertThat(emptyNetwork.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun May 05 18:02:35 UTC 2019
    - 5.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/MutableValueGraph.java

       *     nodeV}, or null if there was no such edge.
       * @throws IllegalArgumentException if the introduction of the edge would violate {@link
       *     #allowsSelfLoops()}
       */
      @CanIgnoreReturnValue
      @CheckForNull
      V putEdgeValue(N nodeU, N nodeV, V value);
    
      /**
       * Adds an edge connecting {@code endpoints} if one is not already present, and sets a value for
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/AbstractGraph.java

      }
    
      /** Returns a string representation of this graph. */
      @Override
      public String toString() {
        return "isDirected: "
            + isDirected()
            + ", allowsSelfLoops: "
            + allowsSelfLoops()
            + ", nodes: "
            + nodes()
            + ", edges: "
            + edges();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

        ImmutableValueGraph<String, Integer> emptyGraph =
            ValueGraphBuilder.directed()
                .allowsSelfLoops(true)
                .nodeOrder(ElementOrder.<String>natural())
                .<String, Integer>immutable()
                .build();
    
        assertThat(emptyGraph.isDirected()).isTrue();
        assertThat(emptyGraph.allowsSelfLoops()).isTrue();
        assertThat(emptyGraph.nodeOrder()).isEqualTo(ElementOrder.<String>natural());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/StandardNetwork.java

          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();
        // Prefer the heavier "MapRetrievalCache" for nodes if lookup is expensive. This optimizes
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/StandardNetwork.java

          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();
        // Prefer the heavier "MapRetrievalCache" for nodes if lookup is expensive. This optimizes
    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. android/guava/src/com/google/common/graph/ForwardingGraph.java

        return delegate().edges().size();
      }
    
      @Override
      public boolean isDirected() {
        return delegate().isDirected();
      }
    
      @Override
      public boolean allowsSelfLoops() {
        return delegate().allowsSelfLoops();
      }
    
      @Override
      public ElementOrder<N> nodeOrder() {
        return delegate().nodeOrder();
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/ForwardingGraph.java

        return delegate().edges().size();
      }
    
      @Override
      public boolean isDirected() {
        return delegate().isDirected();
      }
    
      @Override
      public boolean allowsSelfLoops() {
        return delegate().allowsSelfLoops();
      }
    
      @Override
      public ElementOrder<N> nodeOrder() {
        return delegate().nodeOrder();
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/AbstractValueGraph.java

          }
    
          @Override
          public boolean isDirected() {
            return AbstractValueGraph.this.isDirected();
          }
    
          @Override
          public boolean allowsSelfLoops() {
            return AbstractValueGraph.this.allowsSelfLoops();
          }
    
          @Override
          public ElementOrder<N> nodeOrder() {
            return AbstractValueGraph.this.nodeOrder();
          }
    
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top