Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for MutableValueGraph (0.06 sec)

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

        newBuilder.incidentEdgeOrder = checkNotNull(incidentEdgeOrder);
        return newBuilder;
      }
    
      /**
       * Returns an empty {@link MutableValueGraph} with the properties of this {@link
       * ValueGraphBuilder}.
       */
      public <N1 extends N, V1 extends V> MutableValueGraph<N1, V1> build() {
        return new StandardMutableValueGraph<>(this);
      }
    
      ValueGraphBuilder<N, V> copy() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

      @Test
      public void immutableValueGraph() {
        MutableValueGraph<String, Integer> mutableValueGraph = ValueGraphBuilder.directed().build();
        mutableValueGraph.addNode("A");
        ImmutableValueGraph<String, Integer> immutableValueGraph =
            ImmutableValueGraph.copyOf(mutableValueGraph);
    
        assertThat(immutableValueGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableValueGraph).isEqualTo(mutableValueGraph);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 30 17:09:51 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

       */
      public static class Builder<N, V> {
    
        private final MutableValueGraph<N, V> mutableValueGraph;
    
        Builder(ValueGraphBuilder<N, V> graphBuilder) {
          // The incidentEdgeOrder for immutable graphs is always stable. However, we don't want to
          // modify this builder, so we make a copy instead.
          this.mutableValueGraph =
              graphBuilder.copy().incidentEdgeOrder(ElementOrder.<N>stable()).build();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/ImmutableValueGraph.java

       */
      public static class Builder<N, V> {
    
        private final MutableValueGraph<N, V> mutableValueGraph;
    
        Builder(ValueGraphBuilder<N, V> graphBuilder) {
          // The incidentEdgeOrder for immutable graphs is always stable. However, we don't want to
          // modify this builder, so we make a copy instead.
          this.mutableValueGraph =
              graphBuilder.copy().incidentEdgeOrder(ElementOrder.<N>stable()).build();
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java

        mutableGraph.addNode("A");
        ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph);
    
        assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class);
        assertThat(immutableGraph).isEqualTo(mutableGraph);
    
        mutableGraph.addNode("B");
        assertThat(immutableGraph).isNotEqualTo(mutableGraph);
      }
    
      @Test
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.5K bytes
    - Viewed (0)
Back to top