igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] random element


From: Ragia Ibrahim
Subject: Re: [igraph] random element
Date: Sun, 19 Jan 2014 23:47:25 +0200

Many thanks


Date: Sat, 18 Jan 2014 12:04:50 -0500
From: address@hidden
To: address@hidden
Subject: Re: [igraph] random element

Hi, I assume you are using R, and your graph is 'g' and your node to update is 'v'.

- sample(vcount(g), 1)
- V(g)$weight[v] <- newweight

Gabor


On Sat, Jan 18, 2014 at 11:35 AM, Ragia Ibrahim <address@hidden> wrote:
Dear,
kindly please how can i
- select random node from a graph (red via ncol) ? and 
- how to update node weight ?
replying is highly appreciated
Thanks in advance
RAE

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



_______________________________________________ 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]