Bipartite layout algorithms

Bug #1044984 reported by Gábor Csárdi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
In Progress
Medium
Gábor Csárdi

Bug Description

E.g. http://www.iplab.cs.tsukuba.ac.jp/paper/.../ito_hcii2009.pdf is a more sophisticated algorithm, for 2d and 3d.

A simple algorithm would be to place the vertices in two columns and then minimize the edge crossings.

Related branches

Revision history for this message
Tamás Nepusz (ntamas) wrote :

The current implementation of the Sugiyama layout would do as a simple first approach.

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Isn't that overkill here? I would just top vertices on the left, bottom vertices on the right, and then edges are from left to right. In this simple case it might be even possible to minimize the edge crossings analytically. But I might be wrong.

Revision history for this message
Tamás Nepusz (ntamas) wrote :

The Sugiyama layout uses a very similar approach (minimizing edge crossings using a simple heuristic), the only difference is that it does a lot of extra legwork to ensure that every edge spans only one layer -- this is achieved by inserting dummy nodes etc. If you only have two layers, the Sugiyama layout will not insert any extra nodes, it will just try to order the vertices in the top and bottom (left and right) layers in order to minimize the number of edge crossings. So I still think that it is enough to call igraph_layout_sugiyama with a predefined layering (from the vertex types). Maybe we can create a wrapper on top of igraph_layout_sugiyama that hides the unneeded arguments.

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

OK, I'll try that.

Changed in igraph:
status: Confirmed → In Progress
assignee: nobody → Gábor Csárdi (gabor.csardi)
milestone: none → 0.6.1
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

I have added the simple two-row (or two-column) layout in revision #2942 (0.7-main).

Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

The simple Sugiyama layout will do for version 0.6.1, so I'll reschedule the rest for 0.7

Changed in igraph:
milestone: 0.6.1 → 0.7
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/235

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.