g.rand <- random.graph.game(100, 5/100)
m.rand <- MeasureNetworkInformation(g.rand)
m.rand
pf <- matrix( c(.8, .2, .3, .7), nr=2)
g.pref <- preference.game(100, 2, pref.matrix=pf)
m.pref <- MeasureNetworkInformation(g.pref)
m.pref
m.pref / m.rand # Relative informativeness of this preference graph
# to this random graph with respect to betweenness
## Not run:
# prob.of.link <- c(1:50)/100
# mnis <- sapply(prob.of.link, function(p)
# MeasureNetworkInformation(random.graph.game(100, p)))
# plot(prob.of.link, mnis,
# type="l",
# main="Network Information of random graphs",
# xlab="probability of link formation",
# ylab="information")
# mtext("with respect to betweenness measure", line=0.5)## End(Not run)
Run the code above in your browser using DataLab