Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2 Line Connection, Possible? #402

Open
loblab opened this issue May 9, 2020 · 2 comments
Open

2 Line Connection, Possible? #402

loblab opened this issue May 9, 2020 · 2 comments

Comments

@loblab
Copy link

loblab commented May 9, 2020

Is it possible to make a 2-line (or more) connection in same direction from A to B using dagre-d3? Thanks.

image

@GeneGi
Copy link

GeneGi commented Jul 28, 2020

Just got a similar situation, found a solution from other issue.

Add the config when create the graph
var graph = new dagreD3.graphlib.Graph({ multigraph: true });
Add a name identifier when set the edge
graph.setEdge('A', 'B', 'Label', 'edge1') or graph.setEdge('A', 'B', {label: 'Label'}, 'edge2')

@Alina92
Copy link

Alina92 commented Aug 11, 2020

刚刚遇到类似的情况,从其他问题中找到了解决方案。

在创建图形时添加配置在
var graph = new dagreD3.graphlib.Graph({ multigraph: true });
设置边线时添加名称标识符
graph.setEdge('A', 'B', 'Label', 'edge1')graph.setEdge('A', 'B', {label: 'Label'}, 'edge2')

Just met with this question, see your answer, thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants