How to add two separate linkdata array to graphlinks model..?

I am having two separate link data arrays and i want to add it one single diagram
EX:
var model = $(go.GraphLinksModel);

var nodeDataArray = [ nodedata];
var linkDataArray = [ link data];
var linkDataArray1 = [ link data1];

myDiagram.model = new go.GraphLinksModel(nodeDataArray, linkDataArray,linkDataArray1);

The above one is not working,can you please give solution to this…
if possible give me example code link…
Thanks in advance

I’m not sure what your usage is that you need two separate arrays, but the simple solutions seems to concatenating the arrays.

myDiagram.model = new go.GraphLinksModel(nodeDataArray, linkDataArray.concat(linkDataArray1));