65 Edge type without bends - yEd Q&A
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

Edge type without bends

0 votes
I need an edge type without bends (straight lines with arrows from node to node),

This could prevent unwanted insertions of bends by yED.

How can I do this?
in Help by (550 points)
Ha, I just found out why I could not get any straight lines anymore. Whatever edge type I chose, I would always create at least one bend. It turned out that my problem was hidden under the menu point of 'Ansicht' ("view"?). There is an option called "orthogonal edges F10" and I might have activated it unconciously. By turning this option off, I was finally able to draw straight lines again! So, I think the placement of this menu point and its effects on drawing edges is a bit misleading. However, I am happy that I could get rid of this.

2 Answers

0 votes
There is no such edge type. You can use the Element Selection tool to select and delete all bends or bends of selected edges.
by [yWorks] (26.8k points)
–1 vote
yEd allow us to customize the looks of nodes and edges and to use it as the default.

To customize the default edge type, first draw and edge and remove all the nubs to make it straight.

Second, in the 'Current Elements' palette you can see your new edge. Select and set it as 'Default'.

Afterwards, everytime you draw an edge it will use your new straight edge, until you change it again.

Hope it help!
by
This works, thank you.

And this is stupid UX. Straight edges are the most important type, and it's neither clear that they are even possible nor how to get them.

None of the steps in this answer are necessary to create a straight-line edge.

All the edge types available in yEd support straight-line edges no matter which is selected as default edge type.

To create a straight-line edge, ...

  1. make sure "Orthogonal Edges" (third button from the right in yEd's tool bar) is not active.
  2. Move the mouse over a node that is not selected,
  3. press and hold the left mouse button,
  4. while holding the left mouse button, move the mouse over the desired target node for the edge, and finally
  5. release the left mouse button.

You cannot prevent adding bends to edges in yEd, though. (Because if you want straight-line edges, simply do not add bends in the first place.)

If a layout algorithm adds bends to your edges, the algorithm does so to prevent edges from running through nodes or from crossing other edges. If you do not care about that and want to have straight-line edges nonetheless, run "Layout" -> "Edge Routing" -> "Straight Line" to remove all bends from all edges.

Legal Disclosure | Privacy Policy
...