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 <[email protected]> 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
> [email protected]
> https://lists.nongnu.org/mailman/listinfo/igraph-help
>
>
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to