in reply to Re^2: Visualizing a dependency graph in a web page
in thread Visualizing a dependency graph in a web page
> automate creating images of them without edges having to cross each other, etc.Really? I have doubts it's always possible to draw a planar graph.
consider a 3d-cube, how do you want to draw a planar graph without crossings - here x ?
There are two basic cases where the graphs cannot be embedded in a 2-d representation without crossing lines:
a -> A, B, C b -> A, B, C c -> A, B, C
A -> B, C, D, E B -> C, D, E C -> D, E D -> E
Your cube example actually can be embedded. You just lose the pretty perspective (or gain a new one...).
This is proven by Kuratowski's theorem and is discussed here.0 / | \ / | \ / B \ / / \ \ A---a c---C \ \ / / \ 1 / \ | / \ | / b
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Visualizing a dependency graph in a web page
by LanX (Saint) on Apr 01, 2022 at 21:46 UTC | |
by kennethk (Abbot) on Apr 01, 2022 at 23:43 UTC | |
by LanX (Saint) on Apr 02, 2022 at 09:49 UTC | |
by karlgoethebier (Abbot) on Apr 02, 2022 at 10:15 UTC |