D3.js Edge Bundling without Hierachy
问题 Holten's hierarchical edge bundling algorithm in D3 depends on hierarchical data. Example: http://bl.ocks.org/mbostock/7607999 Is there a way to implement a similar circular edge bundling graph with those nice splines for non-hierarchical data? Example: http://bl.ocks.org/sjengle/5432087 (Like this, but with splines...) 回答1: If your data really is non-hierarchical, you could change the drawCurves function of your example into something like this: function drawCurves(links) { d3.select("#plot"