* Get a node by id. * @param {string} node_id * @returns {Node | null}
(node_id)
| 33 | * @returns {Node | null} |
| 34 | */ |
| 35 | get_node(node_id) { |
| 36 | if (node_id in this.nodes) { |
| 37 | return this.nodes[node_id]; |
| 38 | } else { |
| 39 | logger.warn('the node[id=' + node_id + '] can not be found'); |
| 40 | return null; |
| 41 | } |
| 42 | } |
| 43 | /** |
| 44 | * Set the root node, only once. |
| 45 | * @param {string} node_id |
no outgoing calls
no test coverage detected