d3.js fundamentals of force(), nodes() and links()