Building a graph is a pretty straight forward task in D3.js, but I’ve had a hard time understanding how to update them. This is a try to explain why.