Plot.plot({
inset: 50,
x: {axis: null},
y: {axis: null},
marks: [
Plot.link(links.map(project), {
x1: "x1", y1: "y1", x2: "x2", y2: "y2"
}),
Plot.dot(nodes, {x: "x", y: "y", fill: "black"}),
Plot.text(nodes, {x: "x", y: "y", text: "id", dy: 16, dx: -12})
],
width: 300,
height: 220
})