viewof graph = {
const edges = linkEdges(data.nodes, data.edges);
const config = { width, height, bb };
const svg = this ? this.value : d3.create('svg');
svg
.transition()
.duration(svgDuration)
.attr('width', config.width)
.attr('height', config.height)
.attr('viewBox', config.bb);
d3render(svg, [
{
append: "style",
key: "styles",
text: styles
},
EdgeNodeComponent(data.nodes, edges)
]);
svg.node().value = svg;
return svg.node();
}