Hi all,
I would like to draw a random graph by Sage. The general stochastic model is the following: The graph contains n vertices and the n vertices are divided into r communities C1⋯,Cr. For two vertices within the same community, there is a probability Pr that they are connected directly by an edge. How do I plot such a graph in Sage? References appreciated.