The problem: Looking for quite some time for a js graph library to create a directed graph (e.g. using dagre
layout), with the constrain of non-overlapping edges.
Steps until now
- Started with cytoscape.js but as it seems, such a feature doesn't exist.
- Continued on with an
svg
based solution (considering that all elements are in the DOM), d3.js using the dagre-d3, but still the information in the DOM is the path route.
Objective
- Find a way to detect edge overlapping, either
canvas
orsvg
based. - Create a custom layout to respect this constrain. Will use this as a metric for my convergence algorithm.
Graphical Representation
Below a graphical representation of the objective.
I want to detect that edges 0>1
and 2>3
are overlapping.
Any ideas, thoughts are welcome.
If there is something wrong with my logic, corrections/suggestions are more than welcome.