- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for MutableGraph (0.12 sec)
-
guava/src/com/google/common/graph/ImmutableGraph.java
* * @since 28.0 */ public static class Builder<N> { private final MutableGraph<N> mutableGraph; Builder(GraphBuilder<N> 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.mutableGraph = 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.2K bytes - Viewed (0) -
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 Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 17:09:51 UTC 2025 - 30.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java
final boolean graphIsMutable() { return graphAsMutableGraph != null; } @Before public final void init() { graph = createGraph(); if (graph instanceof MutableGraph) { graphAsMutableGraph = (MutableGraph<Integer>) graph; } } @After public final void validateGraphState() { validateGraph(graph); } static <N> void validateGraph(Graph<N> graph) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 07 15:57:03 UTC 2025 - 17.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/AbstractGraphTest.java
final boolean graphIsMutable() { return graphAsMutableGraph != null; } @Before public final void init() { graph = createGraph(); if (graph instanceof MutableGraph) { graphAsMutableGraph = (MutableGraph<Integer>) graph; } } @After public final void validateGraphState() { validateGraph(graph); } static <N> void validateGraph(Graph<N> graph) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 07 15:57:03 UTC 2025 - 17.3K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/Graph.java
* create an instance of one of the built-in implementations of {@code Graph}, use the {@link * GraphBuilder} class: * * {@snippet : * MutableGraph<Integer> graph = GraphBuilder.undirected().build(); * } * * <p>{@link GraphBuilder#build()} returns an instance of {@link MutableGraph}, which is a subtype * of {@code Graph} that provides methods for adding and removing nodes and edges. If you do notRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 13.6K bytes - Viewed (0) -
guava/src/com/google/common/graph/Graph.java
* create an instance of one of the built-in implementations of {@code Graph}, use the {@link * GraphBuilder} class: * * {@snippet : * MutableGraph<Integer> graph = GraphBuilder.undirected().build(); * } * * <p>{@link GraphBuilder#build()} returns an instance of {@link MutableGraph}, which is a subtype * of {@code Graph} that provides methods for adding and removing nodes and edges. If you do notRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 13.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/TraverserTest.java
public void forTree_acceptsDirectedGraph() throws Exception { MutableGraph<String> graph = GraphBuilder.directed().build(); graph.putEdge("a", "b"); Traverser.forTree(graph); // Does not throw } @Test public void forTree_withUndirectedGraph_throws() throws Exception { MutableGraph<String> graph = GraphBuilder.undirected().build(); graph.putEdge("a", "b");
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 17:09:51 UTC 2025 - 47.4K bytes - Viewed (2) -
android/guava/src/com/google/common/graph/ElementOrder.java
/** * Used to represent the order of elements in a data structure that supports different options for * iteration order guarantees. * * <p>Example usage: * * {@snippet : * MutableGraph<Integer> graph = * GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build(); * } * * @author Joshua O'Madadhain * @since 20.0 */ @Beta @ImmutableRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 6.6K bytes - Viewed (0) -
guava/src/com/google/common/graph/ElementOrder.java
/** * Used to represent the order of elements in a data structure that supports different options for * iteration order guarantees. * * <p>Example usage: * * {@snippet : * MutableGraph<Integer> graph = * GraphBuilder.directed().nodeOrder(ElementOrder.<Integer>natural()).build(); * } * * @author Joshua O'Madadhain * @since 20.0 */ @Beta @ImmutableRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 6.6K bytes - Viewed (0)