[Top][All Lists]

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

Re: [igraph] a problem with simplify()

From: Gábor Csárdi
Subject: Re: [igraph] a problem with simplify()
Date: Thu, 21 Oct 2010 18:43:49 +0200

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.


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

reply via email to

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