Creates a mutable copy of graph, using the same nodes.
(Graph<N> graph)
| 124 | * Creates a mutable copy of {@code graph}, using the same nodes. |
| 125 | */ |
| 126 | public static <N> MutableGraph<N> copyOf(Graph<N> graph) { |
| 127 | return copyOf(graph, Predicates.alwaysTrue()); |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * Creates a mutable copy of {@code graph}, using all of its elements that satisfy |