[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] a problem with simplify()
From: |
Simone Gabbriellini |
Subject: |
Re: [igraph] a problem with simplify() |
Date: |
Thu, 21 Oct 2010 19:01:16 +0200 |
Hi Gabor,
I am on 0.6 right now. thanks I'll use the workaround, I just need to kill
loops. Is there any better way to do this than:
for (i in 0:length(E(g))){
if is.loop(g, eids=i){
delete.edges(g,i)
}
}
best,
simone
Il giorno 21/ott/2010, alle ore 18.43, Gábor Csárdi ha scritto:
> Hi Simone,
>
> it should not be a problem, but it still is. simplify() is a single
> function, and it does not keep the edge attributes, whatever its
> arguments are. At least not in the 0.5 version, the 0.6 version is
> already better.
>
> A workaround is to use is.loop() and delete.edges(), this keeps all
> attributes.
>
> Best,
> Gabor
>
> On Thu, Oct 21, 2010 at 5:06 PM, Simone Gabbriellini
> <address@hidden> wrote:
>> Hello List,
>>
>> I am trying to simplify my graph, which has loops and has no multiple edge.
>> the graph has vertex and edges attributes,
>> Using:
>>
>> g<-simplify(g, remove.multiple=FALSE, remove.loops=TRUE)
>>
>> I end up with a graph that has no edge attributes...
>>
>> Vertices: 389
>> Edges: 481
>> Directed: TRUE
>> No graph attributes.
>> Vertex attributes: name, starttime, endtime, nodesize, nodeshape, colorname.
>> No edge attributes.
>>
>> Since I specified remove.multiple = FALSE, the edge attributes shouldn't be
>> a problem, or is there something I'm missing?
>>
>> thanks,
>> simone
>> _______________________________________________
>> igraph-help mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/igraph-help
>>
>
>
>
> --
> Gabor Csardi <address@hidden> UNIL DGM
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
- [igraph] a problem with simplify(), Simone Gabbriellini, 2010/10/21
- Re: [igraph] a problem with simplify(), Gábor Csárdi, 2010/10/21
- Re: [igraph] a problem with simplify(),
Simone Gabbriellini <=
- Re: [igraph] a problem with simplify(), Tamas Nepusz, 2010/10/21
- Re: [igraph] a problem with simplify(), Tamas Nepusz, 2010/10/21
- Re: [igraph] a problem with simplify(), Gábor Csárdi, 2010/10/21
- Re: [igraph] a problem with simplify(), Simone Gabbriellini, 2010/10/21
- Re: [igraph] a problem with simplify(), Gábor Csárdi, 2010/10/21
- Re: [igraph] a problem with simplify(), Simone Gabbriellini, 2010/10/21