SVG Attributes

Use SVG attributes to create a dashed edge:

canvas.nodes([1, 2, 3, 4, 5, 6]).add()
canvas.edges([[1, 2], [1, 3], [2, 3],
    [4, 5], [4, 6], [5, 6]]).add()

canvas.edge([1, 4]).add({
    svgattrs: { 'stroke-dasharray': 4 }
})