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

Method from

output/java_guava/1.4.18/NetworkBuilder.java:98–100  ·  view source on GitHub ↗

Returns a NetworkBuilder initialized with all properties queryable from graph. The "queryable" properties are those that are exposed through the Network interface, such as Network#isDirected(). Other properties, such as #expectedNodeCount(int), are not set

(Network<N, E> graph)

Source from the content-addressed store, hash-verified

96
97
98 public static <N, E> NetworkBuilder<N, E> from(Network<N, E> graph) {
99 return new NetworkBuilder<N, E>(graph.isDirected()).allowsParallelEdges(graph.allowsParallelEdges()).allowsSelfLoops(graph.allowsSelfLoops());
100 }
101
102 /**
103 * Specifies whether the graph will allow parallel edges. Attempting to add a parallel edge to

Callers 2

ImmutableNetworkMethod · 0.95
copyOfMethod · 0.95

Calls 3

allowsSelfLoopsMethod · 0.65
allowsParallelEdgesMethod · 0.65
isDirectedMethod · 0.65

Tested by

no test coverage detected