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

Cannot set edges in nodes which are defined as parents. #261

Open
keizer619 opened this issue Jul 26, 2016 · 0 comments
Open

Cannot set edges in nodes which are defined as parents. #261

keizer619 opened this issue Jul 26, 2016 · 0 comments

Comments

@keizer619
Copy link

Imagine there are 3 nodes namely node1, node2 and node3. Then set node3 as the parent of node2. Then i need to create an edge from from node1 to node3. I wrote following code and it gives TypeError: label is undefined.

g.setNode("node1", {label: "node2"}); g.setNode("node2", {label: "node2"}); g.setNode("node3", {label: "node3", clusterLabelPos: "top", style: "fill: #ffd47f"}); g.setParent("node2", "node3"); g.setEdge("node1", "node3");

if i comment g.setParent('node2', 'node3'); or g.setEdge('node1', 'node3'); graph will be drawn. Apparently we cannot do both for a node.

https://jsfiddle.net/keizer619/6f1dxpa2/

voidest pushed a commit to epam/pipeline-builder that referenced this issue May 5, 2017
New technique creates new temporary graph
with all links moved to highest rank child of each
adjacent cell. This approach handles the limitation covered in:
dagrejs/dagre-d3#261.
daniilsavchuk pushed a commit to epam/pipeline-builder that referenced this issue May 12, 2017
New technique creates new temporary graph
with all links moved to highest rank child of each
adjacent cell. This approach handles the limitation covered in:
dagrejs/dagre-d3#261.
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

1 participant