(link)
| 5325 | }; |
| 5326 | }; |
| 5327 | function d3_layout_bundlePath(link) { |
| 5328 | var start = link.source, end = link.target, lca = d3_layout_bundleLeastCommonAncestor(start, end), points = [ start ]; |
| 5329 | while (start !== lca) { |
| 5330 | start = start.parent; |
| 5331 | points.push(start); |
| 5332 | } |
| 5333 | var k = points.length; |
| 5334 | while (end !== lca) { |
| 5335 | points.splice(k, 0, end); |
| 5336 | end = end.parent; |
| 5337 | } |
| 5338 | return points; |
| 5339 | } |
| 5340 | function d3_layout_bundleAncestors(node) { |
| 5341 | var ancestors = [], parent = node.parent; |
| 5342 | while (parent != null) { |
no test coverage detected