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 can I create a line that does not end at a node?

+1 vote
in Help by (3.4k points)

1 Answer

+2 votes
 
Best answer
The following describes how you can mimic lines that do not end at a symbol. This includes lines ending at other lines and completely independent lines.

Every Diagram is a Graph

In yEd, every line has to have a start node and an end node. This way, every diagram is a graph which is required in particular for the layout tools. Depending on the specific use case, there are several work-arounds available. Each of these comes with some drawbacks.

Invisible Nodes

A seemingly independent line can be created by using very small or invisible nodes (no fill colors and no line color) as the start and end nodes. If such a node is placed on another line, it appears that two lines connect to each other.

Layout algorithms have no special handling for invisible nodes and may produce unexpected results for such an arrangement. The position of an invisible node which models a connecting line has to be adjusted manually when the position of one of the related nodes changes.

Shared Line Paths

A line connecting to another line can be modeled also by shared line paths. To achieve this, create a regular line to the point where it meets the existing line and then follow the path of this line to one of its end nodes.

For convenient editing, you can use the mouse selection box to select all overlapping bends at a connection point and move a complete bundle of edges at once. Also, if you move a node, all of its edges with shared paths stay together.

Layout algorithms may or may not keep the edges combined.

Thin Nodes

Horizontal or vertical lines can be modeled by thin shape nodes.

 

by [yWorks] (23.7k points)
Attach notes to edges according to UML 2 use case extensions points
Only the first method is acceptable but it is SO tedious to do so.  Why can't the default be invisible nodes??  Instead we have to do this ridiculous no-color fill and line.
To make method one more convenient, I propose to create a custom palette with the symbol designs you need and select the symbols of this palette as the default template for new nodes.
> Why can't the default be invisible nodes??

Because you hardly ever want to use invisible nodes *except* for the "free" lines/"free" labels workaround. Invisible nodes are very annoying to work with because you do not know where they are, how big they are, etc.
I don't know if it is version improvenment (post is 3 years old) but if anyone googling comes here, then:
there is a better solution.
Just draw a line between your block and any other, then select it.
Two small black squares will be shown in blocks that are connected by Your line, just drag one of these squares to the place where you need the line to end
when you delete the node, it then disappears
free lines on yEd
Legal Disclosure | Privacy Policy
...