Can anyone recommend a JS library which calculates "optimal" node positions for an acyclic graph under the following constraints:
- Nodes are rectangles that have width and height (they'll later be rendered as HTML divs) and should not overlap
- If possible, edges should not overlap with nodes / cross any node's boundaries
?
I really just need the positions as I would like to have precise control over how and when things are rendered. So far, I've been using WebCola for this and while it works ok, it tends to become quite slow in some situations.
- Nodes are rectangles that have width and height (they'll later be rendered as HTML divs) and should not overlap
- If possible, edges should not overlap with nodes / cross any node's boundaries
?
I really just need the positions as I would like to have precise control over how and when things are rendered. So far, I've been using WebCola for this and while it works ok, it tends to become quite slow in some situations.