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

Method copyOf

output/java_guava/1.4.17/Graphs.java:131–133  ·  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

129
130
131 public static <N> MutableGraph<N> copyOf(Graph<N> graph) {
132 return copyOf(graph, Predicates.alwaysTrue());
133 }
134
135 /**
136 * Creates a mutable copy of {@code graph}, using all of its elements that satisfy

Callers 12

ensureCapacityMethod · 0.45
hashMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
growMethod · 0.45
toByteArrayMethod · 0.45
ensureCapacityMethod · 0.45
ensureCapacityMethod · 0.45
immutableEnumSetMethod · 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