Multiple Links Between Two Nodes in D3.js Force Directed Layout

A simple way to handle if there are multiple links between to nodes in the force directed layout implemented in D3.js.

HTML

<script type="text/javascript" src="http://d3js.org/d3.v2.min.js"></script>

<ul>
  <li>hey</li>
  <li>hey2</li>
</ul>

JavaScript

d3.selectAll('li')
	.attr('color',function(d,i){
  	console.log(this,i);
  })