Reingold-Tilford layout is acting weird sometimes

Bug #1090812 reported by Tamás Nepusz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
igraph
Fix Released
Medium
Unassigned

Bug Description

E.g., construct a graph out of the attached RelationshipData.csv file in R as follows:

> df <- read.csv("RelationshipData.csv")
> gdf <- graph.data.frame(df)
> gdf <- gdf - c("NA")
> l <- layout.reingold.tilford(gdf)

This seems to happen in the 64-bit version of R only, although the layout does not make sense in Python or C either because the layout function assumes that the edges are oriented downwards and here the tree is oriented towards the root (upwards). I guess that it boils down in the end to uninitialized variables, so a quick run through Valgrind will probably reveal where the problem is.

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

Another way to reproduce it:

> g <- barabasi.game(10)
> l <- layout.reingold.tilford(g)

If it works, use more nodes (e.g., 100).

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

Fixed in #3090 in trunk and in #3039 in 0.6-main.

Changed in igraph:
status: Confirmed → Fix Committed
Changed in igraph:
status: Fix Committed → Fix Released
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/250

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.