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

Method from

output/java_guava/1.4.19/GraphBuilder.java:88–91  ·  view source on GitHub ↗

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

(Graph<N> graph)

Source from the content-addressed store, hash-verified

86
87
88 public static <N> GraphBuilder<N> from(Graph<N> graph) {
89 // TODO(b/28087289): add allowsParallelEdges() once we support them
90 return new GraphBuilder<N>(graph.isDirected()).allowsSelfLoops(graph.allowsSelfLoops());
91 }
92
93 /**
94 * Specifies whether the graph will allow self-loops (edges that connect a node to itself).

Callers 2

ImmutableGraphMethod · 0.95
copyOfMethod · 0.95

Calls 2

allowsSelfLoopsMethod · 0.65
isDirectedMethod · 0.65

Tested by

no test coverage detected