Trying to model wireless ad-hoc network behavior using D3.JS