Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is it possible to layout edge-to-edge connections #1105

Open
tompkins-ct opened this issue Dec 13, 2024 · 2 comments
Open

[Question] Is it possible to layout edge-to-edge connections #1105

tompkins-ct opened this issue Dec 13, 2024 · 2 comments
Labels
question Request for support in using ELK.

Comments

@tompkins-ct
Copy link

Ask your questions
I'm am looking for help on how to layout a graph with some edge-to-edge connections using the layered algorithm.

The use case is from constraints or comments on UML / SysML type diagrams where a comment node can be tied to an edge between other nodes using an edge. Elk produces an error when trying to link an edge to another edge (because it's not targetable).

My source tool for developing the graphs treats the edges as separate entities (so I have an edge with the source as a node and the target as an edge)

Elk JSON attempt: example

Expected behavior
layed out edges.

Screenshots
image

@tompkins-ct tompkins-ct added the question Request for support in using ELK. label Dec 13, 2024
@Eddykasp
Copy link
Contributor

Edge to edge connections are not possible in ELK. You would have to insert a node where you want to connect the edge and give it an appropriate size and rendering to blend with the edges. The original edge would of course have to be split into two edges.

@soerendomroes
Copy link
Contributor

As seen here, comments are just a special kind of node. Sadly, I do not think that you can recreate the edge comment shown above by that but you can use this as an example for syntactically correct comment boxes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Request for support in using ELK.
Projects
None yet
Development

No branches or pull requests

3 participants