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

Method degree

output/java_guava/1.4.17/AbstractGraph.java:32–36  ·  view source on GitHub ↗
(Object node)

Source from the content-addressed store, hash-verified

30
31public abstract class AbstractGraph<N> implements Graph<N> {
32 @Override
33 public int degree(Object node) {
34 // only works for non-multigraphs; multigraphs not yet supported
35 return adjacentNodes(node).size();
36 }
37
38 @Override
39 public int inDegree(Object node) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.65
adjacentNodesMethod · 0.65

Tested by

no test coverage detected