Returns a list of edges connected to this node @param node @return the set of nodes that are attached by edges to the given node.
(Node node)
| 356 | * @return the set of nodes that are attached by edges to the given node. |
| 357 | */ |
| 358 | public List<Edge> getEdges(Node node) { |
| 359 | List<Edge> edges = new ArrayList<Edge>(); |
| 360 | for (Node adjNode : getAdjacencies(node)) { |
| 361 | edges.add(((ReRootedNode)adjNode).getEdge()); |
| 362 | |
| 363 | } |
| 364 | return edges; |
| 365 | } |
| 366 | |
| 367 | /** |
| 368 | * @param node |
nothing calls this directly
no test coverage detected