kieler / elkjs

ELK's layout algorithms for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to control the horizontal position of connected nodes?

Vesper0704 opened this issue · comments

For unconnected nodes, I use partition to layout. What about nodes that connect with each other? In this example, I want to place node1 and node2 in the same row instead of conforming to the elk.direction: DOWN, is there any way to do this?
image

Thanks!

Edges between nodes in the same layer are not possible. You could however change the layout direction for the three hierarchy levels or use hierarchical ports to split the hierarchical edge, constrain the nodes to be next to each other and use nolayout on the edge connecting them.