dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.84k stars 587 forks source link

how to add two lines(same direction) between two nodes #310

Closed laozb closed 6 years ago

laozb commented 6 years ago

it seems that there can only be one line between two nodes

cpettitt commented 6 years ago

You need to use a multigraph as input, which allows more than one edge between the same two nodes. See: https://github.com/dagrejs/graphlib/wiki/API-Reference#multigraphs

laozb commented 6 years ago

thank you very much