igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] edge attribute indexing in R


From: Gábor Csárdi
Subject: Re: [igraph] edge attribute indexing in R
Date: Thu, 25 Mar 2010 21:56:38 +0100

Hi Michael,

it is a known bug:
https://bugs.launchpad.net/igraph/+bug/528963

As a workaround, you can do things by not using the smart indexing:

which(E(g)$weight < 1.5)-1

gives you the edge ids you're looking for.

Best,
Gabor

On Thu, Mar 25, 2010 at 4:56 PM, Michael Barnett <address@hidden> wrote:
> Hi igraph list,
>
> New igraph list member here. I wanted to write to ask if anyone else has
> encountered this issue. I'm using R 2.10 in Mac OS 10.5.8. Whenever I try to
> index an igraph network object by an edge attribute, R is incredibly slow
> for the large-ish networks I'm working with, on the range of hundreds to
> thousands of nodes. I use the exact notation in the help file, typing for
> instance:
>
> E(net)[ weight < 1.5]$weight
>
> This code works for me when I make simple test networks, but not for the
> larger datasets I'm working with. R becomes slow enough that I have to force
> exit the program after becoming impatient after a few minutes. Has anyone
> else encountered this issue? Is this a known bug?
>
> -Michael
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

[Prev in Thread] Current Thread [Next in Thread]