Giter Site home page Giter Site logo

Comments (2)

szhorvat avatar szhorvat commented on August 23, 2024

Let me check if I understand what you are requesting:

  • This function will lay out subgraphs corresponding to each specified community individually
  • It will then merge these layout without taking into account the connections between the communities

I am not in favour of including such a feature in igraph because:

  • Since connections between communities are not taken into account, the layout will typically be quite poor.
  • The layout obtained this way does not actually reveal information about any community structure.
  • For those who really want this anyway, it can already be accomplished with merge_coords()

There are more advanced layout methods that can take communities into account, and it would make sense to implement those. One example is hierarchical edge bundling. But this naive approach doesn't really produce good results.


The reason for the existence of layout_components() is that most layout algorithms were not designed to be able to handle disconnected graphs. The proper approach is to lay out each weakly connected component separately, then merge the layouts by some method. Currently igraph only has a rudimentary support for this, but we hope to be able to do more in the future.

To be clear, the ultimate decision about this it with @krlmlr, not me.

from rigraph.

noriakis avatar noriakis commented on August 23, 2024

Thank you very much for your detailed answer.

Let me check if I understand what you are requesting:

  • This function will lay out subgraphs corresponding to each specified community individually
  • It will then merge these layout without taking into account the connections between the communities

Yes, that is what I was considering. The initial reason was I thought it would be useful to visually examine how nodes with already established labels (cluster information) relate to other nodes on the network with the known relationship by explicitly disjointing them (like in the visualization of the gene regulatory network with information on the genes).

However, as you stated, this indeed performs poorly and can be already accomplished with merge_coords().

I am not in favour of including such a feature in igraph because:

  • Since connections between communities are not taken into account, the layout will typically be quite poor.
  • The layout obtained this way does not actually reveal information about any community structure.
  • For those who really want this anyway, it can already be accomplished with merge_coords()

Thank you for your clarification on the points that this is not an expected feature in igraph, and I completely agree with these. In particular, I am very convinced by the reason for the existence of layout_components().

Again, thank you for taking the time to consider this issue and for maintaining this important project.

from rigraph.

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.