D3.js visualization of a network structure, restructured to render as tree topology