Given an (n×n) probability matrix P, gmodel.P generates binary observation graphs corresponding to Bernoulli distribution whose parameter matches to the element of P.
noloop: a logical value; TRUE for graphs without self-loops, FALSE otherwise.
symmetric.out: a logical value; FALSE for generated graphs to be nonsymmetric, TRUE otherwise. Note that TRUE is supported only if the input matrix P is symmetric.
Returns
depending on rep value, either
(rep=1): an (n-by-n) observation matrix, or
(rep>1): a length-rep list where each element is an observation is an (n-by-n) realization from the model.