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

Overlapped relationships when we have multiple relationships between same pair of nodes #350

Open
burhanqayoom opened this issue Jun 14, 2023 · 6 comments

Comments

@burhanqayoom
Copy link

Expected Behavior (Mandatory)

I have a neo4j graph that i am displaying in hierarchical mode. I have a scenario where i have multiple relationships between a pair of nodes. I am expecting the relationships to not overlap

Actual Behavior (Mandatory)

however, the relationships are overlapping in that case. I tried to add avoidOverlap i hierarchical, but seems that doesn't work for hierarchical.

How to Reproduce the Problem

Simple Example

Datasets and Statements

Screenshots (where it's possibile)

Specifications (Mandatory)

Currently used versions

Versions

  • OS:
  • Library:
  • Neo4j:
@thebestnom
Copy link
Collaborator

Hm... That's a vis-network problem, searching online I found
https://visjs.github.io/vis-network/examples/network/layout/hierarchicalLayoutOverlapAvoidance.html
https://stackoverflow.com/questions/46880063/how-to-avoid-network-graph-nodes-overlapping
So that's avoidOverlap gets a number and you can put it higher for better overlap avoidness
But not tested myself 😅

@burhanqayoom
Copy link
Author

this is for nodes overlapping. I need the parameter to avoid relationship overlapping

I am currently getting it like this.

@thebestnom
Copy link
Collaborator

Maybe this?
visjs/vis-network#1546

@burhanqayoom
Copy link
Author

Screenshot 2023-06-14 141329

@burhanqayoom
Copy link
Author

These are multiple links and their labels as well are getting overlapped

@NudistBeaaach
Copy link

Did your find any solutions to this problem ? I'm facing the same issue, avoidOverlap works well on nodes but n-edges between two same nodes are overlaping.

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

3 participants