Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for allowsSelfLoops (0.06 sec)

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

      }
    
      @Test
      public void edges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.edges()).containsExactly(E11);
      }
    
      @Test
      public void incidentEdges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.incidentEdges(N1)).containsExactly(E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

      }
    
      @Test
      public void edges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.edges()).containsExactly(E11);
      }
    
      @Test
      public void incidentEdges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.incidentEdges(N1)).containsExactly(E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

              {true, ElementOrder.stable()},
            });
      }
    
      private final boolean allowsSelfLoops;
      private final ElementOrder<Integer> incidentEdgeOrder;
    
      public StandardMutableUndirectedGraphTest(
          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/StandardImmutableDirectedNetworkTest.java

          ElementOrder<String> edgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.allowsParallelEdges = allowsParallelEdges;
        this.nodeOrder = nodeOrder;
        this.edgeOrder = edgeOrder;
      }
    
      @Override
      Network<Integer, String> createGraph() {
        networkBuilder =
            NetworkBuilder.directed()
                .allowsSelfLoops(allowsSelfLoops)
                .allowsParallelEdges(allowsParallelEdges)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 09 17:01:22 UTC 2020
    - 2.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Test
      public void adjacentNodes_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void predecessors_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.predecessors(N1)).containsExactly(N1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

       * UnsupportedOperationException}.
       *
       * <p>The default value is {@code false}.
       */
      @CanIgnoreReturnValue
      public ValueGraphBuilder<N, V> allowsSelfLoops(boolean allowsSelfLoops) {
        this.allowsSelfLoops = allowsSelfLoops;
        return this;
      }
    
      /**
       * Specifies the expected number of nodes in the graph.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  7. 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)
  8. guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

              {true, ElementOrder.stable()},
            });
      }
    
      private final boolean allowsSelfLoops;
      private final ElementOrder<Integer> incidentEdgeOrder;
    
      public StandardMutableUndirectedGraphTest(
          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

      }
    
      @Test
      public void edges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.edges()).containsExactly(E11);
      }
    
      @Test
      public void incidentEdges_selfLoop() {
        assume().that(network.allowsSelfLoops()).isTrue();
    
        addEdge(N1, N1, E11);
        assertThat(network.incidentEdges(N1)).containsExactly(E11);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

      }
    
      @Test
      public void adjacentNodes_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        putEdge(N1, N2);
        assertThat(graph.adjacentNodes(N1)).containsExactly(N1, N2);
      }
    
      @Test
      public void predecessors_selfLoop() {
        assume().that(graph.allowsSelfLoops()).isTrue();
    
        putEdge(N1, N1);
        assertThat(graph.predecessors(N1)).containsExactly(N1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top