MCPcopy Index your code
hub / github.com/antlr/codebuff / copyOf

Method copyOf

corpus/java/training/guava/graph/Graphs.java:126–128  ·  view source on GitHub ↗

Creates a mutable copy of graph, using the same nodes.

(Graph<N> graph)

Source from the content-addressed store, hash-verified

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

Callers 12

growMethod · 0.45
toByteArrayMethod · 0.45
hashMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45

Calls 15

alwaysTrueMethod · 0.95
fromMethod · 0.95
fromMethod · 0.95
mergeNodesFromMethod · 0.95
addEdgeMethod · 0.95
sizeMethod · 0.65
nodesMethod · 0.65
applyMethod · 0.65
addNodeMethod · 0.65
successorsMethod · 0.65
addEdgeMethod · 0.65
edgesMethod · 0.65

Tested by 1

toByteArrayMethod · 0.36