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.

Categories

how to change multi-segment (orthogonal) edges to one straight line (node to node) automatically

0 votes
I have a tree graph created in a tgf program by another application. The graph displays in yEd fine, my only issue is that when the layout is changed to tree, the lines that form the edges are multi-segment lines. I would like to change it to straight line. Not manually, I know how to do it manually! There are over 2000 modes in that tree.

There should be some sort of settings that control the shape/properties of an edge.

Thanks so much!
in Help by

1 Answer

+1 vote
You can delete the bends of all edges or some selected edges and get straight lines with the 'Straight Line' edge router (Layout > Edge Router > Straight Line).

For trees, I propose to use a tree 'Layout Style' that creates straight lines in the first place, that is 'Balloon' or 'Directed' with setting 'Orthogonal Edge Routing' disabled. These layout algorithms will avoid overlaps between nodes and lines which may be created by simple removing bends afterwards.
by [yWorks] (26.8k points)
Legal Disclosure | Privacy Policy
...