Nodes are numbered.

In R:
sample(vcount(g), 1000)


In Python:
import random
random.sample(range(g.vcount()), 1000)

G.


On Sat, Jan 25, 2014 at 10:42 PM, Ahmed Abdeen Hamed <
[email protected]> wrote:

> Hello again everyone!
>
> What function to use for selecting random nodes? Say I have a 10,000 nodes
> graph and I want to select a 1000. I can't find the sampling function. I am
> looking for something simple but Gibbs or Metropolis Sampling will be good!
>
> Thanks in advance!
>
> -Ahmed
>
> _______________________________________________
> 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