Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for edgeValue (0.06 sec)

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

        assertThat(graph.edgeValue(1, 2).orElse(DEFAULT)).isEqualTo(DEFAULT);
        assertThat(graph.edgeValue(2, 1).orElse(DEFAULT)).isEqualTo(DEFAULT);
        assertThat(graph.edgeValueOrDefault(1, 2, null)).isNull();
        assertThat(graph.edgeValueOrDefault(2, 1, null)).isNull();
        assertThat(graph.edgeValue(1, 2).orElse(null)).isNull();
        assertThat(graph.edgeValue(2, 1).orElse(null)).isNull();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 06 18:35:19 UTC 2024
    - 20K bytes
    - Viewed (0)
  2. guava/src/com/google/common/graph/AbstractValueGraph.java

            return AbstractValueGraph.this.outDegree(node);
          }
        };
      }
    
      @Override
      public Optional<V> edgeValue(N nodeU, N nodeV) {
        return Optional.ofNullable(edgeValueOrDefault(nodeU, nodeV, null));
      }
    
      @Override
      public Optional<V> edgeValue(EndpointPair<N> endpoints) {
        return Optional.ofNullable(edgeValueOrDefault(endpoints, null));
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/ValueGraph.java

       *
       * @throws IllegalArgumentException if {@code nodeU} or {@code nodeV} is not an element of this
       *     graph
       * @since 23.0 (since 20.0 with return type {@code V})
       */
      Optional<V> edgeValue(N nodeU, N nodeV);
    
      /**
       * Returns the value of the edge that connects {@code endpoints} (in the order, if any, specified
       * by {@code endpoints}), if one is present; otherwise, returns {@code Optional.empty()}.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 10 15:41:27 UTC 2024
    - 16K bytes
    - Viewed (0)
Back to top