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

Method nodeToAdjacentNodes

output/java_guava/1.4.17/Graphs.java:448–458  ·  view source on GitHub ↗
(final Graph<N> graph)

Source from the content-addressed store, hash-verified

446
447
448 private static <N> Map<N, Set<N>> nodeToAdjacentNodes(final Graph<N> graph) {
449 checkNotNull(graph, "graph");
450 return Maps.asMap(
451 graph.nodes(),
452 new Function<N, Set<N>>() {
453 @Override
454 public Set<N> apply(N node) {
455 return graph.adjacentNodes(node);
456 }
457 });
458 }
459
460 /**
461 * Returns a function that transforms an edge into a string representation of its incident nodes

Callers 1

hashCodeMethod · 0.95

Calls 3

asMapMethod · 0.95
nodesMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected