R: assigning to complex attributes does not work as expected

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

Bug Description

Carl Pearson reported this:

library(igraph)
g <- graph.ring(10)
V(g)$foo <- lapply(1:vcount(g), sample, x=1:100)
V(g)$foo[[5]][1:3] <- 0
V(g)$foo

You are right that

V(g)[9]$foo[1:2] <- -100

does not work and that it should. I consider this a bug, and will fix
it, if possible.

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

We wil postpone this to 0.7, because I need to think over the correct and unambiguous way of handling complex attributes.

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/231

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.