Open agentydragon opened 4 years ago
+1, I would use graph layout way more regularly if it had this. As is, I usually jump out to another graph editing program that has this feature, and paste image in Roam.
By the way, for how I would like to use the feature (to draw e.g. dependency relationships between tasks which Roam pages), it would also help to have a customizable graph view generated from, say, a Depends on:: [[Task1]] [[Task2]]
attribute. See:
Describe the problem
I've made a bunch of diagrams where from the start, I didn't know what the final diagram will end up looking like, as I keep adding nodes and edges in a creative process.
When I do that, I often end up drawing the diagram with a lot of crossing edges.
Then, to make the graph more readable, I end up manually laying it out for a minute to make the edges not cross so much.
Feature implementation
Put in a button to automatically lay out the diagram if it's planar.
Extra points for:
Additional context
There are algorithms for planar graph layout that run in O(n).