Creates a two-mode lattice

create_lattice(node1, node2)

Arguments

node1

Number of nodes in the first node set

node2

Number of nodes in the second node set

Details

Will construct a bilateral lattice, with two ties for every second-mode node.

Examples

create_lattice(10, 12)
#> [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11] [,12] #> [1,] 1 1 0 0 0 0 0 0 0 0 1 1 #> [2,] 0 1 1 0 0 0 0 0 0 0 0 1 #> [3,] 0 0 1 1 0 0 0 0 0 0 0 0 #> [4,] 0 0 0 1 1 0 0 0 0 0 0 0 #> [5,] 0 0 0 0 1 1 0 0 0 0 0 0 #> [6,] 0 0 0 0 0 1 1 0 0 0 0 0 #> [7,] 0 0 0 0 0 0 1 1 0 0 0 0 #> [8,] 0 0 0 0 0 0 0 1 1 0 0 0 #> [9,] 0 0 0 0 0 0 0 0 1 1 0 0 #> [10,] 1 0 0 0 0 0 0 0 0 1 1 0