Skip to main content
. Author manuscript; available in PMC: 2015 Apr 7.
Published in final edited form as: Simulation. 2014 Apr 1;90(4):460–484. doi: 10.1177/0037549714526947

Algorithm 4.

Procedure MakeRelations

Input: bivariate attribute distributions {βi,j}i=1..m;j=1..l, bivariate degree distributions {χj=}j=1,,l, individual attributes {xi}i=1..m and ideal degrees {dj}j=1..l, the population V
Output: E
1 E=
2 foreach i in 1... |V| do
3     foreach j =1...l do
4         Nj(vi).
5         foreach e = 1...dj(v) do
6             Schedule AddEdge(vi, j) to take place at time 1ei+1.
7 Wait until time 1.
8 Ei=1VwN(vi){(v,w)}
9 return E