dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 589 forks source link

Connceting cluster with arrow as a node ? #432

Open HadiKutabi opened 1 year ago

HadiKutabi commented 1 year ago

is it possible to have one arrow going to a cluster and one arrow going out of it, while the cluster contains unconnected nodes ?

g.setNode('a', {label: 'A'}); g.setNode('b', {label: 'B'}); g.setNode('c', {label: 'C'}); g.setNode('d', {label: 'D'}); g.setNode('e', {label: 'E'}); g.setNode('f', {label: 'F'}); g.setNode('group', {label: 'Group', style: 'fill: #d3d7e8'});

g.setParent('c', 'group'); g.setParent('d', 'group'); g.setParent('e', 'group');

g.setEdge('a', 'b'); g.setEdge('b', 'group'); g.setEdge('group', 'f');

Thank you!

silentport commented 9 months ago

@HadiKutabi Hi, I have also encountered a similar issue. Did you manage to resolve it later?