igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Changing a particular edge attribute


From: Tamás Nepusz
Subject: Re: [igraph] Changing a particular edge attribute
Date: Sat, 14 Jan 2012 21:43:23 +0100

Hi,

I'm assuming that you use igraph from R. This works perfectly fine for me:

> g <- graph.famous("petersen")
> E(g)$weight <- 1:15
> # Now change the weight of edge #4
> E(g)[4]$weight <- 66

-- 
T.

On 14 Jan 2012, at 09:28, Hirak wrote:

> Hi ,
>     I want to change a attribute of a particular edge but after changing that 
> is vanishing other edges of the graph.. and tkplot is not showing anything 
> after that. How can I change a particular edge without disturbing the whole 
> graph ?
> 
> 
> 
> -- 
> Hirak Sarkar 
> 
> 
> _______________________________________________
> igraph-help mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/igraph-help




reply via email to

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