MCPcopy Create free account
hub / github.com/antlr/codebuff / toString

Method toString

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

Returns a string representation of graph. Encodes edge direction if graph is directed.

(Graph<?> graph)

Source from the content-addressed store, hash-verified

355 * is directed.
356 */
357 public static String toString(Graph<?> graph) {
358 if (graph instanceof Network) {
359 return toString((Network<?, ?>) graph);
360 }
361 return String.format(GRAPH_FORMAT,
362 getPropertiesString(graph),
363 graph.nodes(),
364 adjacentNodesString(graph));
365 }
366
367 /**
368 * Returns a string representation of {@code graph}. Encodes edge direction if {@code graph}

Callers 2

toStringMethod · 0.95
toStringMethod · 0.95

Calls 7

getPropertiesStringMethod · 0.95
adjacentNodesStringMethod · 0.95
asMapMethod · 0.95
nodesMethod · 0.65
edgesMethod · 0.65
formatMethod · 0.45

Tested by

no test coverage detected