nl_tokens: D3 tick handler for the forced graph layout .
pl_tokens: function onTick ( ) { nodes . attr ( 'cx' , function ( node ) { return node . x ; } ) . attr ( 'cy' , function ( node ) { return node . y ; } ) . attr ( 'transform' , function ( node ) { return 'translate(' + node . x + ',' + node . y + ')' ; } ) ; // Pull data from data.nodes array. Provides a curve to the links. links . attr ( 'd' , function ( link ) { var sourceX = <mask> . nodes [ link . source . index ] . x ; var sourceY = data . nodes [ link . source . index ] . y ; var targetX = data . nodes [ link . target . index ] . x ; var targetY = data . nodes [ link . target . index ] . y ; var dx = targetX - sourceX , dy = targetY - sourceY , dr = Math . sqrt ( dx * dx + dy * dy ) ; return 'M' + sourceX + ',' + sourceY + 'A' + dr + ',' + dr + ' 0 0,1 ' + targetX + ',' + targetY ; } ) ; }