powered by
Creates classical random binary and weighted two-mode networks
rg_tm(ni=100,np=100,ties=300,weights=1,seed=NULL)
Number of nodes in the first set
Number of nodes in the second set
Number of ties; if this value is between 0 and 1, a random network where each tie is based on this probability will be produced
A tie weight vector to be randomly sampled. If set to 1 (default), all tie weights will be 1, and hence a binary two-mode network will be created.
the random seed. If you want it to be non-reproducable, use NULL otherwise, use a number
Returns a random two-mode network
Tore Opsahl. Triadic closure in two-mode networks: Redefining the global and local clustering coefficients. arXiv:1006.0887
# NOT RUN { ## Run the programme rg_tm(ni=10,np=10,ties=20) # }
Run the code above in your browser using DataLab