Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Bi-directional edge, double arrows on an edge between nodes#1490

rahst12 started this conversation inGeneral
Discussion options

We're looking into how to create a bi-directional edge between two nodes. Essentially, two nodes connected with one edge and an arrow on both ends of the edge pointing to each node.

We have a number of cases where nodes link to each other, resulting in the graph becoming cluttered with two edges pointing between the nodes. We're hoping if we can set an edge to be bidirectional, then the graph will look cleaner and we'll yield a performance improvement as well.

Any pointers would be appreciated.

You must be logged in to vote

Replies: 1 comment 4 replies

Comment options

Hi@rahst12,

Sorry for the delay. The best solution before to render bi-directional edges with sigma in my opinion, as presented in this story:https://www.sigmajs.org/storybook/?path=/story/sigma-edge-curve--parallel-edges

Also, as it makes sense to have double arrows, I just pushed a newcreateEdgeDoubleArrowProgram, that should do what you need. I have taken the time to communicate on it or to document it yet, but you should be able to use it now (it's been shipped with3.0.0-beta.39).

You must be logged in to vote
4 replies
@rahst12
Comment options

Amazing, thank you, we will check this out and let you know how it works.

@djseiss
Comment options

Hey@jacomyal,

We got to working on this before beta 39 and ended up with a hacky solution. This is awesome work that will really help us out!

We do have one issue where we have multiple edges between the same nodes and therefore using the curved edge program. I think it would be very beneficial to have this built into the curved edge program as well.

@jacomyal
Comment options

Yes, it makes sense indeed. I'll add an enhancement ticket for this, until I find the time to implement it properly (shouldn't be too long). Thanks!

@jacomyal
Comment options

I just published @sigma/edge-curvev3.1.0 with the double-arrows. It is showcased in this new story (with the straight double arrows as well):
https://www.sigmajs.org/storybook/?path=/story/sigma-edge-curve--arrow-heads

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
3 participants
@rahst12@jacomyal@djseiss

[8]ページ先頭

©2009-2025 Movatter.jp