GithubHelp home page GithubHelp logo

group not alphabetically about nxviz HOT 9 CLOSED

ericmjl avatar ericmjl commented on August 24, 2024
group not alphabetically

from nxviz.

Comments (9)

ericmjl avatar ericmjl commented on August 24, 2024 1

@noragak thanks for pinging in! Let me check the source code to see where this is happening.

from nxviz.

ericmjl avatar ericmjl commented on August 24, 2024

I see it's happening here.

I see where you're coming from - the intent is to allow an end-user to specify the order of the groups rather than automatically do so.

What do you think the API design should look like to enable this?

from nxviz.

norakassner avatar norakassner commented on August 24, 2024

Difficult question!

  1. So one option would be again another parameter like "grouping_order" where one can choose between "alphabetically" and something like "default" (like a first come first serve order of the node annotations which later build the groups). Also maybe different parameters. But that are the only ones I can think of right now...
  2. But maybe there is an easier way?

from nxviz.

ericmjl avatar ericmjl commented on August 24, 2024

So one option would be again another parameter like "grouping_order" where one can choose between "alphabetically" and something like "default" (like a first come first serve order of the node annotations which later build the groups). Also maybe different parameters. But that are the only ones I can think of right now...

I think this is a great idea! Just have to make sure that grouping_order is right next to node_grouping in the docstrings, of course, otherwise it'll be easy to miss that one. 😄.

from nxviz.

norakassner avatar norakassner commented on August 24, 2024

Great. I'll start implementing it today. What other options should be added other than "alphabetically", "default"?

from nxviz.

ericmjl avatar ericmjl commented on August 24, 2024

Thanks @noragak! I think those look good for now. Perhaps this might be one of those few places where having the user explicitly pass in a list is also a reasonable and good option. What do you think?

from nxviz.

norakassner avatar norakassner commented on August 24, 2024

The implementation is done: you can have a look at it in my master branch. Right now you can distinguish between "alphabetically" (which is the default option to keep all plots created till now the same) and the other is "default" (maybe I should change the name here..?).

from nxviz.

ericmjl avatar ericmjl commented on August 24, 2024

Woohoo!! Could you do a PR in? GitHub has some really nice features related to showing code diffs.

Btw, I've scanned the relevant parts of the codebase - it looks good! Don't forget to add in an example; I think I will start building the examples gallery over the next month or so.

from nxviz.

ericmjl avatar ericmjl commented on August 24, 2024

Seeing as how #325 was merged, I'm closing this issue for now.

from nxviz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.