Skip to content

Specifics about the layout algorithm #10

Answered by s0l0ist
senritsu asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @senritsu, thanks for asking!

tl;dr - it's a rough port of Dagre to rust with some rust specific optimizations, bug fixes, and tweaks. So definitely Sugiyama plus the others mentioned in Dagre's docs.

I've tried hard to mimic the layouts of Dagre - I even ported almost all of the tests - but due to some of my changes the layouts are not always the same.

I plan to write more layout algorithms and use more idiomatic rust patterns to aid future layout expansion.

Performance

Since it is based on Dagre, you can expect the same performance curve. For small graphs (~20 nodes), Vizdom will perform slower than Dagre because of the WASM data marshaling that must be done, but for medium/large (5…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@senritsu
Comment options

Answer selected by senritsu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants