- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for MutableGraph (0.21 sec)
-
android/guava/src/com/google/common/graph/MutableGraph.java
* should prefer the {@link Graph} interface. * * @author James Sexton * @author Joshua O'Madadhain * @param <N> Node parameter type * @since 20.0 */ @Beta public interface MutableGraph<N> extends Graph<N> { /** * 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. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ElementOrderTest.java
public final class ElementOrderTest { // Node order tests @Test public void nodeOrder_none() { MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(unordered()).build(); assertThat(graph.nodeOrder()).isEqualTo(unordered()); } @Test public void nodeOrder_insertion() { MutableGraph<Integer> graph = GraphBuilder.directed().nodeOrder(insertion()).build(); addNodes(graph);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8.1K bytes - Viewed (0) -
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) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphsTest.java
} private static MutableGraph<Integer> buildDirectedGraph() { MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build(); directedGraph.putEdge(N1, N1); directedGraph.putEdge(N1, N2); directedGraph.putEdge(N2, N1); return directedGraph; } private static MutableGraph<Integer> buildUndirectedGraph() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 24.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java
graph.addNode(N1); MutableGraph<Integer> g2 = createGraph(edgeType); g2.addNode(N2); assertThat(graph).isNotEqualTo(g2); } // Node/edge sets are the same, but node/edge connections differ due to edge type. @Test public void equivalent_directedVsUndirected() { graph.putEdge(N1, N2); MutableGraph<Integer> g2 = createGraph(oppositeType(edgeType));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/GraphEquivalenceTest.java
graph.addNode(N1); MutableGraph<Integer> g2 = createGraph(edgeType); g2.addNode(N2); assertThat(graph).isNotEqualTo(g2); } // Node/edge sets are the same, but node/edge connections differ due to edge type. @Test public void equivalent_directedVsUndirected() { graph.putEdge(N1, N2); MutableGraph<Integer> g2 = createGraph(oppositeType(edgeType));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
@Test public void immutableGraph() { MutableGraph<String> mutableGraph = GraphBuilder.directed().build(); mutableGraph.addNode("A"); ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph); assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class); assertThat(immutableGraph).isEqualTo(mutableGraph); mutableGraph.addNode("B");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
@Test public void immutableGraph() { MutableGraph<String> mutableGraph = GraphBuilder.directed().build(); mutableGraph.addNode("A"); ImmutableGraph<String> immutableGraph = ImmutableGraph.copyOf(mutableGraph); assertThat(immutableGraph).isNotInstanceOf(MutableValueGraph.class); assertThat(immutableGraph).isEqualTo(mutableGraph); mutableGraph.addNode("B");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.5K bytes - Viewed (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) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 2.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/EndpointPairTest.java
} // Tests for Graph.edges() and Network.asGraph().edges() methods // TODO(user): Move these to a more appropriate location in the test suite. @Test public void endpointPair_directedGraph() { MutableGraph<Integer> directedGraph = GraphBuilder.directed().allowsSelfLoops(true).build(); directedGraph.addNode(N0); directedGraph.putEdge(N1, N2); directedGraph.putEdge(N2, N1); directedGraph.putEdge(N1, N3);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 9.5K bytes - Viewed (0)