let dir = "/jtopo/";
let nodes = [
{ id: 1, shape: "circularimage", image: dir + "server.png" },
{ id: 2, shape: "circularimage", image: dir + "server.png" },
{ id: 3, shape: "circularimage", image: dir + "server.png" },
{
id: 4,
shape: "circularimage",
image: dir + "gather.png",
label: "pictures by this guy!"
},
{ id: 5, shape: "circularimage", image: dir + "wanjet.png" },
{ id: 6, shape: "circularimage", image: dir + "center.png" },
{ id: 7, shape: "circularimage", image: dir + "cloud.png" },
{ id: 8, shape: "circularimage", image: dir + "center.png" },
{ id: 9, shape: "circularimage", image: dir + "wanjet.png" },
{ id: 10, shape: "circularimage", image: dir + "gather.png" }
// { id: 11, shape: "circularimage", image: dir + "11.png" },
// { id: 12, shape: "circularimage", image: dir + "12.png" },
// { id: 13, shape: "circularimage", image: dir + "13.png" },
// { id: 14, shape: "circularimage", image: dir + "14.png" },
// {
// id: 15,
// shape: "circularimage",
// image: dir + "missing.png",
// brokenimage: dir + "missingbrokenimage.png",
// label: "when images\nfail\nto load"
// },
// {
// id: 16,
// shape: "circularimage",
// image: dir + "anothermissing.png",
// brokenimage: dir + "9.png",
// label: "fallback image in action"
// }
];
let edges = [
{ from: 1, to: 4 },
{ from: 2, to: 4 },
{ from: 3, to: 4 },
{ from: 4, to: 5 },
{ from: 5, to: 6 },
{ from: 6, to: 7 },
{ from: 8, to: 7 },
{ from: 9, to: 8 },
{ from: 10, to: 9 }
// { from: 8, to: 10 },
// { from: 10, to: 11 },
// { from: 11, to: 12 },
// { from: 12, to: 13 },
// { from: 13, to: 14 },
// { from: 9, to: 16 }
];
网友评论