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

Overlapping edges and edge labels #96

Open
ahlvnils opened this issue Nov 17, 2020 · 2 comments
Open

Overlapping edges and edge labels #96

ahlvnils opened this issue Nov 17, 2020 · 2 comments

Comments

@ahlvnils
Copy link

ahlvnils commented Nov 17, 2020

Hi!

I have a graph where I display the relation(s) between nodes as edge labels. This leads to overlapping edges and edge labels when there are multiple relations:

image

Do we have any way of manipulating the behavior of multiple edges? Perhaps a modification of the parallel edges plugin would help? https://github.com/jacomyal/sigma.js/tree/master/plugins/sigma.renderers.parallelEdges

I'd be happy to help if someone could point out where to begin.

Related to: #84 #64 #61

@ahlvnils ahlvnils changed the title Overlapping edge labels Overlapping edges and edge labels Nov 18, 2020
@dunnock
Copy link
Owner

dunnock commented Nov 19, 2020

Perhaps following example would help https://dunnock.github.io/react-sigma/?path=/story/plugins--edge-labels ? It is using curved edge for rendering and would work only for 2 edges in opposite directions though:

<EdgeShapes default="curve"/>

otherwise importing that plugin should not be that hard too..

@ahlvnils
Copy link
Author

Thanks for the reply. I've tested out the curve edge shape, but most of my relations are one directional. I'll take a look at importing the parallel edges plugin.

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

No branches or pull requests

2 participants