- Sort Score
- Num 10 results
- Language All
Results 1 - 8 of 8 for MutableValueGraph (0.13 seconds)
-
android/guava/src/com/google/common/graph/MutableValueGraph.java
* users should prefer the {@link ValueGraph} interface. * * @author James Sexton * @param <N> Node parameter type * @param <V> Value parameter type * @since 20.0 */ public interface MutableValueGraph<N, V> extends ValueGraph<N, V> { /** * Adds {@code node} if it is not already present. * * <p><b>Nodes must be unique</b>, just as {@code Map} keys must be. They must also be non-null. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 4.3K bytes - Click Count (0) -
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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 6.4K bytes - Click Count (0) -
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() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 7.8K bytes - Click Count (0) -
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);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Sep 30 17:09:51 GMT 2025 - 6.4K bytes - Click Count (0) -
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();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 7.8K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/StandardMutableValueGraph.java
import com.google.common.collect.ImmutableList; import com.google.errorprone.annotations.CanIgnoreReturnValue; import org.jspecify.annotations.Nullable; /** * Standard implementation of {@link MutableValueGraph} that supports both directed and undirected * graphs. Instances of this class should be constructed with {@link ValueGraphBuilder}. *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/StandardMutableGraph.java
* * @author James Sexton * @param <N> Node parameter type */ final class StandardMutableGraph<N> extends ForwardingGraph<N> implements MutableGraph<N> { private final MutableValueGraph<N, Presence> backingValueGraph; /** Constructs a {@link MutableGraph} with the properties specified in {@code builder}. */ StandardMutableGraph(AbstractGraphBuilder<? super N> builder) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2.3K bytes - Click Count (0) -
android/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
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 4.5K bytes - Click Count (0)