On Tue, Aug 21, 2012 at 2:18 PM, André Salgueiro
<[email protected]> wrote:
[...]
>> remove.edge.attribute(g, "weight")
> IGRAPH D--- 12328 76830 --
> + attr: ckey (v/c), id (v/c)
>> g
> IGRAPH D-W- 12328 76830 --
> + attr: ckey (v/c), id (v/c),
>   weight (e/n)
>
> It removes but when i type g(my graph) the attribute is there and my
> analysis remains the same (weighted).

>From the manual page of remove.edge.attribute:

   graph: The graph object to work on. Note that the original graph is
          never modified, a new graph object is returned instead; if
          you don't assign it to a variable your modifications will be
          lost! See examples below.

Gabor

[...]

-- 
Gabor Csardi <[email protected]>     MTA KFKI RMKI

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to