title: Grouping nodes in force directed graphs in d3.js
body: <p>I have currently started working with d3.js.
  How to group nodes to give different colours in force directed graph? For example: parent node having red colour while child node having blue. </p>