Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for incidentEdgeOrder (0.09 sec)

  1. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

       * @throws IllegalArgumentException if {@code incidentEdgeOrder} is not either {@code
       *     ElementOrder.unordered()} or {@code ElementOrder.stable()}.
       * @since 29.0
       */
      public <N1 extends N> ValueGraphBuilder<N1, V> incidentEdgeOrder(
          ElementOrder<N1> incidentEdgeOrder) {
        checkArgument(
            incidentEdgeOrder.type() == ElementOrder.Type.UNORDERED
                || incidentEdgeOrder.type() == ElementOrder.Type.STABLE,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

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

        assertThat(immutableValueGraph.incidentEdgeOrder()).isEqualTo(ElementOrder.stable());
      }
    
      @Test
      public void incidentEdgeOrder_fromUnorderedGraph_stable() {
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(
                ValueGraphBuilder.directed()
                    .incidentEdgeOrder(ElementOrder.unordered())
                    .<String, Integer>build());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedGraphTest.java

        assume().that(graph.incidentEdgeOrder().type()).isEqualTo(ElementOrder.Type.STABLE);
    
        populateTShapedGraph();
    
        assertThat(graph.adjacentNodes(1)).containsExactly(2, 4, 3).inOrder();
      }
    
      @Test
      public void stableIncidentEdgeOrder_predecessors_returnsInConnectingEdgeInsertionOrder() {
        assume().that(graph.incidentEdgeOrder().type()).isEqualTo(ElementOrder.Type.STABLE);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/StandardMutableUndirectedGraphTest.java

            });
      }
    
      private final boolean allowsSelfLoops;
      private final ElementOrder<Integer> incidentEdgeOrder;
    
      public StandardMutableUndirectedGraphTest(
          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
      public MutableGraph<Integer> createGraph() {
        return GraphBuilder.undirected()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 10 17:54:18 UTC 2020
    - 2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

        return delegate().allowsSelfLoops();
      }
    
      @Override
      public ElementOrder<N> nodeOrder() {
        return delegate().nodeOrder();
      }
    
      @Override
      public ElementOrder<N> incidentEdgeOrder() {
        return delegate().incidentEdgeOrder();
      }
    
      @Override
      public Set<N> adjacentNodes(N node) {
        return delegate().adjacentNodes(node);
      }
    
      @Override
      public Set<N> predecessors(N node) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/graph/StandardMutableDirectedGraphTest.java

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

            });
      }
    
      private final boolean allowsSelfLoops;
      private final ElementOrder<Integer> incidentEdgeOrder;
    
      public StandardMutableDirectedGraphTest(
          boolean allowsSelfLoops, ElementOrder<Integer> incidentEdgeOrder) {
        this.allowsSelfLoops = allowsSelfLoops;
        this.incidentEdgeOrder = incidentEdgeOrder;
      }
    
      @Override
      public MutableGraph<Integer> createGraph() {
        return GraphBuilder.directed()
    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/ImmutableValueGraphTest.java

        assertThat(immutableValueGraph.incidentEdgeOrder()).isEqualTo(ElementOrder.stable());
      }
    
      @Test
      public void incidentEdgeOrder_fromUnorderedGraph_stable() {
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(
                ValueGraphBuilder.directed()
                    .incidentEdgeOrder(ElementOrder.unordered())
                    .<String, Integer>build());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/graph/UndirectedGraphConnections.java

      private UndirectedGraphConnections(Map<N, V> adjacentNodeValues) {
        this.adjacentNodeValues = checkNotNull(adjacentNodeValues);
      }
    
      static <N, V> UndirectedGraphConnections<N, V> of(ElementOrder<N> incidentEdgeOrder) {
        switch (incidentEdgeOrder.type()) {
          case UNORDERED:
            return new UndirectedGraphConnections<>(
                new HashMap<N, V>(INNER_CAPACITY, INNER_LOAD_FACTOR));
          case STABLE:
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 3.3K bytes
    - Viewed (0)
Back to top