graph.affiliation( n=100, alphaVect=c(1/2,1/2), lambda=0.7, epsilon=0.05, directed=FALSE )
TRUE
for directed graphs.graph.affiliation
simulates a simple Erdös-Rényi
Mixture of Graph model, using the same within-cluster edge probability
for all clusters and a unique between-cluster edge probability.
graph.affiliation(n=100,c(1/3,1/3,1/3),0.8,0.2)->g
str(g)
Run the code above in your browser using DataLab