# Setting the seed
set.seed(13)
# Generating an directed graph
rgraph_er(undirected=FALSE, p = 0.1)
# Comparing P(tie)
x <- rgraph_er(1000, p=.1)
sum(x)/length(x)
# Several period random gram
rgraph_er(t=5)
Run the code above in your browser using DataLab