(1)链接数组
var links = [
{source: "Microsoft", target: "Amazon", type: "licensing" ,weight:1,color:1},
{source: "Microsoft", target: "HTC", type: "licensing" ,weight:3,color:4},
{source: "Samsung", target: "Apple", type: "suit" ,weight:4,color:6},
{source: "Motorola", target: "Apple", type: "suit" ,weight:6,color:65},
{source: "Nokia", target: "Apple", type: "resolved" ,weight:3,color:76},
{source: "HTC", target: "Apple", type: "suit" ,weight:8,color:879},
{source: "Kodak", target: "Apple", type: "suit" ,weight:7,color:989},
{source: "Microsoft", target: "Barnes & Noble", type: "suit" ,weight:9,color:643},
{source: "Microsoft", target: "Foxconn", type: "suit" ,weight:1,color:54},
{source: "Oracle", target: "Google", type: "suit" ,weight:3,color:54},
{source: "Apple", target: "HTC", type: "suit" ,weight:4,color:45},
{source: "Microsoft", target: "Inventec", type: "suit" ,weight:0,color:43},
{source: "Samsung", target: "Kodak", type: "resolved" ,weight:8,color:243},
{source: "LG", target: "Kodak", type: "resolved" ,weight:1,color:43},
{source: "RIM", target: "Kodak", type: "suit" ,weight:5,color:13},
{source: "Sony", target: "LG", type: "suit" ,weight:3,color:351},
{source: "Kodak", target: "LG", type: "resolved" ,weight:4,color:1},
{source: "Apple", target: "Nokia", type: "resolved" ,weight:1,color:1},
{source: "Qualcomm", target: "Nokia", type: "resolved" ,weight:3,color:4},
{source: "Apple", target: "Motorola", type: "suit" ,weight:4,color:6},
{source: "Microsoft", target: "Motorola", type: "suit" ,weight:6,color:65},
{source: "Motorola", target: "Microsoft", type: "suit" ,weight:3,color:76},
{source: "Huawei", target: "ZTE", type: "suit" ,weight:8,color:879},
{source: "Ericsson", target: "ZTE", type: "suit" ,weight:7,color:989},
{source: "Kodak", target: "Samsung", type: "resolved" ,weight:9,color:643},
{source: "Apple", target: "Samsung", type: "suit" ,weight:1,color:54},
{source: "Kodak", target: "RIM", type: "suit" ,weight:3,color:54},
{source: "Nokia", target: "Qualcomm", type: "suit" ,weight:4,color:45}
];
var nodes = {}; var links = [
{source: "M