(value)
| 13068 | } |
| 13069 | |
| 13070 | function node_sum(value) { |
| 13071 | return this.eachAfter(function(node) { |
| 13072 | var sum = +value(node.data) || 0, |
| 13073 | children = node.children, |
| 13074 | i = children && children.length; |
| 13075 | while (--i >= 0) sum += children[i].value; |
| 13076 | node.value = sum; |
| 13077 | }); |
| 13078 | } |
| 13079 | |
| 13080 | function node_sort(compare) { |
| 13081 | return this.eachBefore(function(node) { |
nothing calls this directly
no outgoing calls
no test coverage detected