neovis.js icon indicating copy to clipboard operation
neovis.js copied to clipboard

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

Open burhanqayoom opened this issue 2 years ago • 6 comments

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:

burhanqayoom avatar Jun 14 '23 07:06 burhanqayoom

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 😅

thebestnom avatar Jun 14 '23 07:06 thebestnom

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

I am currently getting it like this.

burhanqayoom avatar Jun 14 '23 08:06 burhanqayoom

Maybe this? https://github.com/visjs/vis-network/issues/1546

thebestnom avatar Jun 14 '23 08:06 thebestnom

Screenshot 2023-06-14 141329

burhanqayoom avatar Jun 14 '23 08:06 burhanqayoom

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

burhanqayoom avatar Jun 14 '23 08:06 burhanqayoom

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.

NudistBeaaach avatar Jul 25 '23 11:07 NudistBeaaach