Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

odgi draw: add node sparsification factor for SVG output #558

Merged
merged 4 commits into from
Feb 13, 2024

Conversation

AndreaGuarracino
Copy link
Member

This allows us to make smaller SVG output for big graphs

-f 0.1
x_0 1

-f 0.3
x_0 3

-f 0.5
x_0 5

-f 0.7
x_0 7

-f 0.9
x_0 9

-f 1.0 (no node sparsification)
x_1 0

@ekg
Copy link
Contributor

ekg commented Feb 10, 2024

A related trick would be to make the nodes proportionally longer, filling in the gaps.

@AndreaGuarracino
Copy link
Member Author

Machiavellian. Not so clean with strong sparsification (layouts with stretched nodes to the left):

-f 0.1
image

-f 0.3
image

-f 0.5
image

-f 0.7
image

-f 0.9
image

@AndreaGuarracino AndreaGuarracino merged commit ff88bfc into master Feb 13, 2024
1 check passed
@ekg
Copy link
Contributor

ekg commented Feb 13, 2024

I wonder if the sparsification could be driven to remove short nodes first. That might retain the structure while greatly reducing the number of nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants