Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for EndpointPairIterator (0.4 sec)

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

     *
     * @author James Sexton
     */
    abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> {
      private final BaseGraph<N> graph;
      private final Iterator<N> nodeIterator;
    
      @Nullable N node = null; // null is safe as an initial value because graphs don't allow null nodes
    
      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/AbstractBaseGraph.java

       */
      @Override
      public Set<EndpointPair<N>> edges() {
        return new AbstractSet<EndpointPair<N>>() {
          @Override
          public UnmodifiableIterator<EndpointPair<N>> iterator() {
            return EndpointPairIterator.of(AbstractBaseGraph.this);
          }
    
          @Override
          public int size() {
            return Ints.saturatedCast(edgeCount());
          }
    
          @Override
          public boolean remove(@Nullable Object o) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top