The set of internal edges. This is a pretty inefficient implementation because a new set is constructed each time this is called. @return the set of internal edges.
()
| 473 | * @return the set of internal edges. |
| 474 | */ |
| 475 | public Set<Edge> getInternalEdges() { |
| 476 | Set<Edge> edges = new LinkedHashSet<Edge>(); |
| 477 | for (Node node : getInternalNodes()) { |
| 478 | if (node != getRootNode()) { |
| 479 | edges.add(((ReRootedNode)node).getEdge()); |
| 480 | } |
| 481 | } |
| 482 | return edges; |
| 483 | } |
| 484 | |
| 485 | /** |
| 486 | * @param degree the number of edges connected to a node |
nothing calls this directly
no test coverage detected