d3/d3-plugins — pull request #105 by hongtaobai (2014-09-03 05:32:55+00:00)
Title: Fix memory usage issue caused by adding same node multiple times

This issue happens when multiple nodes share same target node, and will consume lots of memory and slow down the layout calculation greatly when a graph being rendered is close to a complete bipartite graph at each step of the flow.

I'm using this Sankey library and seeing it causes browser out-of-memory quite often with the issue. After applied this fix, rendering completes all the time without the memory issue and becomes faster.