Welcome to yEd Q&A!
Here you can ask questions and receive answers from other members of the community and yEd developers. And you can tell us your most wanted feature requests.


How can align all the nodes to the right in Hierarchical Layout

0 votes
When using hierarchical layout, how can I align all the nodes to the right as much as possible,

l am trying to create a project network and want to layout every task as late as possible with the connection between the nodes as the only consideration. My node sizes are appropriate to the size of the task. The Heirarchial layout works very well, but it leaves space between nodes.

Another way could be to specify a standard horizontal length for the edges where possible.

Appreciate your response.

Thank you,

in Help by
edited by

1 Answer

0 votes

I take it your layout direction is left to right. To have nodes laid out as much to the right as possible choose Layer Assignment Policy "Hierarchical - Tight Tree Heuristic" and Alignment Within Layer "Bottom Border of Nodes" (both options are in section "Layers").

However, the hierarchical layout style will never violate its layers paradigma, i.e. it is not possible to have large nodes span several layers of small nodes.  In other words, the hierarchical layout style cannot create the following diagram

but will always create layers like this

by [yWorks] (147k points)
Legal Disclosure | Privacy Policy