d3-graphviz
d3-graphviz copied to clipboard
An edge being drawn looks awkward for non-normal edges
The implementation assumes an edge with dir=forward, arrowhead=normal (explicit or implicit as for directed graphs) and arrowtail=none. If this is not the case, the edge shown during drawing with drawEdge and updateDrawnEdge might look awkward.
Once inserted with insertDrawnEdge the edge will have the specified attributes and look as specified.
Example
DOT source
digraph {
a
b
}
JavaScript attributes
attributes = {
dir: 'both',
arrowhead: 'dot',
arrowtail: 'diamond',
}