Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for adjacent (0.07 sec)

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

        } else {
          if (endpointPair.isOrdered()) {
            return false;
          }
          Set<N> adjacent = graph.adjacentNodes(node);
          Object nodeU = endpointPair.nodeU();
          Object nodeV = endpointPair.nodeV();
    
          return (node.equals(nodeV) && adjacent.contains(nodeU))
              || (node.equals(nodeU) && adjacent.contains(nodeV));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/IncidentEdgeSet.java

        } else {
          if (endpointPair.isOrdered()) {
            return false;
          }
          Set<N> adjacent = graph.adjacentNodes(node);
          Object nodeU = endpointPair.nodeU();
          Object nodeV = endpointPair.nodeV();
    
          return (node.equals(nodeV) && adjacent.contains(nodeU))
              || (node.equals(nodeU) && adjacent.contains(nodeV));
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  3. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/MappingTables.kt

          }
      }
    
      for (sectionList in result.values) {
        mergeAdjacentDeltaMappedRanges(sectionList)
      }
    
      return result.toMap()
    }
    
    /**
     * Modifies [ranges] to combine any adjacent [MappedRange.InlineDelta] of same size to single entry.
     * @returns same instance of [ranges] for convenience
     */
    internal fun mergeAdjacentDeltaMappedRanges(ranges: MutableList<MappedRange>): MutableList<MappedRange> {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/NetworkConnections.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An interface for representing and manipulating an origin node's adjacent nodes and incident edges
     * in a {@link Network}.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <E> Edge parameter type
     */
    @ElementTypesAreNonnullByDefault
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableRangeSet.java

         * and will be merged, but overlapping ranges will cause an exception when {@link #build()} is
         * called.
         */
        @CanIgnoreReturnValue
        public Builder<C> addAll(RangeSet<C> ranges) {
          return addAll(ranges.asRanges());
        }
    
        /**
         * Add all of the specified ranges to this builder. Adjacent ranges are permitted and will be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/RangeTest.java

        IllegalArgumentException expected =
            assertThrows(IllegalArgumentException.class, () -> range.intersection(Range.closed(0, 2)));
        assertThat(expected).hasMessageThat().contains("connected");
    
        // adjacent below
        assertEquals(Range.closedOpen(4, 4), range.intersection(Range.closedOpen(2, 4)));
    
        // overlap below
        assertEquals(Range.closed(4, 6), range.intersection(Range.closed(2, 6)));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  7. guava/src/com/google/common/graph/EndpointPair.java

        return nodeU;
      }
    
      /**
       * Returns the node {@link #adjacentNode(Object) adjacent} to {@link #nodeU()} along the origin
       * edge. If this {@link EndpointPair} {@link #isOrdered()}, this is equal to {@link #target()}.
       */
      public final N nodeV() {
        return nodeV;
      }
    
      /**
       * Returns the node that is adjacent to {@code node} along the origin edge.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 01 17:18:04 UTC 2021
    - 8.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/graph/GraphConnections.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Iterator;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    
    /**
     * An interface for representing and manipulating an origin node's adjacent nodes and edge values in
     * a {@link Graph}.
     *
     * @author James Sexton
     * @param <N> Node parameter type
     * @param <V> Value parameter type
     */
    @ElementTypesAreNonnullByDefault
    interface GraphConnections<N, V> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/SuccessorsFunction.java

    @Beta
    @DoNotMock("Implement with a lambda, or use GraphBuilder to build a Graph with the desired edges")
    @ElementTypesAreNonnullByDefault
    public interface SuccessorsFunction<N> {
    
      /**
       * Returns all nodes in this graph adjacent to {@code node} which can be reached by traversing
       * {@code node}'s outgoing edges in the direction (if any) of the edge.
       *
       * <p>This is <i>not</i> the same as "all nodes reachable from {@code node} by following outgoing
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 4.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/graph/Network.java

       * </ul>
       *
       * @throws IllegalArgumentException if {@code node} is not an element of this network
       */
      Set<N> adjacentNodes(N node);
    
      /**
       * Returns a live view of all nodes in this network adjacent to {@code node} which can be reached
       * by traversing {@code node}'s incoming edges <i>against</i> the direction (if any) of the edge.
       *
       * <p>In an undirected network, this is equivalent to {@link #adjacentNodes(Object)}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top