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

Method toString

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

375
376
377 public static String toString(Graph<?> graph) {
378 if (graph instanceof Network) {
379 return toString((Network<?, ?>) graph);
380 }
381 return String.format(GRAPH_FORMAT, getPropertiesString(graph), graph.nodes(), adjacentNodesString(graph));
382 }
383
384 /**
385 * 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