rg_tm

This function creates a random two-mode network.

Options:

  • number of primiary nodes, default = 100
  • number of seconardy nodes, default = 100
  • number of ties, default = 300
  • maximum edge weight, default = 1 (binary network)
  • seed (reproducible), default = NULL
 

Example

To create a random binary two-mode network with 10 primary nodes, 10 secondary nodes, and 30 ties (reproducible example with seed 1), write the following:

## Load tnet
library(tnet)
## Run programme
rg_tm(ni=10,np=10, ties=30,seed=1)

  i  p
  1  1
  1  9
  2  1
  2  4
  3  1
  3  5
  3  7
  3  8
  3  9
  4  1
  4  4
  4  5
4  7
  5  9
  5 10
  6  5
  6  9
  7  3
  7  5
  7  6
  7  8
  8  3
  8  5
  8  7
  9  4
  9  5
10  3
10  5
10  8
10  9

Last Updated ( Saturday, 28 November 2009 )