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

ELK Layout Support #252

Open
saulshanabrook opened this issue Mar 30, 2021 · 1 comment
Open

ELK Layout Support #252

saulshanabrook opened this issue Mar 30, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@saulshanabrook
Copy link

Problem

I would like to be able to use the Cytoscape ELK layout. In the Cytoscape layout blog post, they describe it as:

The elk layout contains several different layout algorithms. The layered and mrtree algorithms are traditional hierarchical layouts. For many trees, the results of elk probably will not differ much from dagre, and dagre has a smaller file size. The results of elk may differ from dagre to a greater degree for complex DAGs. Compare the results of both layouts and see which suits your dataset best.

Proposed Solution

I propose shipping the ELK extension with the bundle. I realize there may be a slippery slope type argument here, if you include one extension, what about the others? But since the Cytoscape extension ecosystem isn't that large, including a few of the most popular and officially supported ones might be a viable option.

Alternatively, you could support some way for others to repackage these extensions and for you to pick them up, but I imagine that might be more work.

Additional context

@saulshanabrook saulshanabrook added the enhancement New feature or request label Mar 30, 2021
@marimeireles
Copy link
Collaborator

Hey @saulshanabrook, thank you for opening this issue.
It's always been the purpose to integrate more layouts to ipycytoscape :) so that's no problem at all!
Have you tried this locally? Does a

cytoscape.use(elk);

does the job here?
If you've tried this locally, please feel free to open a PR, I'll gladly review it, cheers!

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

No branches or pull requests

2 participants