title: How to create a D3 force directed graph having nodes as divs
body: <p>I am creating a force directed graph using D3. But the issue which I am having is I have Divs containing other divs as nodes. And there are clicks events binded on inner divs.
  All the examples I came across had circles as nodes, I have created some graph using rectengles but I cannot implement all the functionality. Is there a way I can put divs directly inside D3 graphs as nodes.
  Thanks.</p>
  
  <p>Also the div structure is like:</p>
  
  <pre><code>&lt;div&gt;
  &lt;div class="a"&gt;&lt;/div&gt;
  &lt;div class="b"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>with events binded to 'a' and 'b' divs.</p>