Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

    @ElementTypesAreNonnullByDefault
    abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> {
      private final BaseGraph<N> graph;
      private final Iterator<N> nodeIterator;
    
      @CheckForNull
      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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  2. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 7.2K bytes
    - Viewed (0)
Back to top