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

Method getPropertiesString

corpus/java/training/guava/graph/Graphs.java:464–470  ·  view source on GitHub ↗
(Graph<?> graph)

Source from the content-addressed store, hash-verified

462 */
463 // TODO(b/28087289): add allowsParallelEdges() once that's supported
464 private static String getPropertiesString(Graph<?> graph) {
465 if (graph instanceof Network) {
466 return getPropertiesString((Network<?, ?>) graph);
467 }
468 return String.format("isDirected: %s, allowsSelfLoops: %s",
469 graph.isDirected(), graph.allowsSelfLoops());
470 }
471
472 /**
473 * Returns a string representation of the properties of {@code graph}.

Callers 1

toStringMethod · 0.95

Calls 4

isDirectedMethod · 0.65
allowsSelfLoopsMethod · 0.65
allowsParallelEdgesMethod · 0.65
formatMethod · 0.45

Tested by

no test coverage detected