Every method can be modified at any time after the initial drawing of a visualization.
In this example, after waiting 2 seconds, a new node and edge is added to the respective array variables, passed again to the .nodes( ) and .edges( ) methods, and the visualization is finally redrawn by calling the .draw( ) method once more.
Featured on D3plus.org