question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Layouts meta-issue

See original GitHub issue

This issue is to organize some thoughts on changes I’d like to see for our layout code. Happy to have feedback.

Is your feature request related to a problem? Please describe.

  • Layouts should run on directed networks (see #655). If the user wants to color by automatically detected community, then I’d suggest that we just symmetrize the graph internally (only for the community detection step) and proceed. I don’t think this is overstepping our bounds as to what the user wanted, personally, because this is typically the notion of community for directed graphs.
  • Automatic layouts should also be possible using ASE/LSE. I have had a lot of success generating layouts that I like using ASE as opposed to n2v so I think “algorithm” could just be a parameter.
  • Allow passing dictionaries of arguments to stage 1 (n2v/ASE/LSE) and stage 2 (umap/tsne) (see #612)
  • Should have an interface to the layouts code that feels like what we have in .plot and seaborn. I think we could refactor the code such that we can still have all-in-one functions that eat graphs and spit out plots like layouts.save_graph, but there’s no reason we can’t also let people interact with some of these functions in a way that’s more like matplotlib/seaborn.
  • NoOverlap should be an option the user can turn on or off.
  • Layouts should run on adjacency matrices also

Provide references (if applicable)

I have some code here which is closer to the flavor of what I’d want to see for graph plotting code that works with seaborn/matplotlib. Just a reference, not necessarily how we should do anything here. One thing I never figured out for that code which would be nice is automatic scaling of edge/node widths/sizes etc. based on the size of the graph, so that an initial shot at an embedding at least looks reasonable.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:32 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
daxprycecommented, Apr 8, 2021

@bryantower is on spring break and I’m about to check out for the week too, but a quick check of the docs says that you may want a larger perplexity for bigger graphs (though I’m not sure that particular sbm really qualifies)

That said, you should expect this to take a fair amount of time - especially with the no overlap portion on!

1reaction
daxprycecommented, Jun 7, 2021

Do you think we need to warn the user that this is happening or just do it automatically and explain in the docs?

We probably should warn. I don’t like automatically inferring/doing things without warning someone - just in case our “we think this is probably safe” ends up being not safe, but the user won’t ever know we’re trying to be too clever for our own good

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] Layouts meta-issue #2783 - JuliaPlots/Plots.jl - GitHub
I was trying to crack why Plots layouting does not always work perfectly and stumbled upon the 2016 year Toms issues and how...
Read more >
[META] Layouts and Styles discovery overview - Drupal
Problem/Motivation Meta issue for the displaying overview of the styles and layouts in the reports page (Take field list for example).
Read more >
(meta) Getting started with GitLab (#15632) · Issues
Our goal with this meta issue is to ... meant to give a general direction and it'll be up to the design team...
Read more >
Keyboard problems meta issue : IDEA-206614 - YouTrack
Which keyboard layout do you use? If you're using a non-english layout, it may be related to IDEA-165950, please try "Use national layouts...
Read more >
1273992 - [Layout pane] Missing grid and flex during first reload
Google Chrome 98.0.4729.0 (Official Build) canary (x86_64) OS macOS Version 12.0.1 (Build 21A559) 1. Open DevTools > Layout pane
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found