(Object node)
| 30 | |
| 31 | public 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) { |
nothing calls this directly
no test coverage detected