d3.js - d3 directed graph, how it works -
i'm trying insert d3 directed graph( this one ) thorax( super type of backbone ) view. able still have questions on way working(d3 code). first create force layout passing nodes , edges var force = d3.layout.force() .nodes(nodes) .links(links) .size([width, height]) .linkdistance(150) .charge(-500) .on('tick', tick) does create graph actually? what these 2 lines do this.path = this.svg.append('svg:g').selectall('path'); this.circle = this.svg.append('svg:g').selectall('g'); append svg:g element svg element. ok it. selectall. don't it. paths there? created force layout? this.path = this.path.data(this.links); do? have no idea? then append paths. this.path.enter().append('svg:path') .attr('class', 'link') .style('marker-start', function (d) { return d.left ? 'url(#start-arrow)' : ''; }) .style('marker-end', function (d) { return d.right ? '...