I\'m using the R package d3Network to produce D3.js Forced Layout graphs. The code that d3Network produces gives me a \"Uncaught TypeError: Cannot read property \'weight\' of un
The numbers given as "source" and "target" links are indexes into the nodes array and should start from 0. Yours start from 1 and hence the highest number doesn't exist and gives you this error.