I am asking to create an adjacency matrix from a random graph. I really have no idea how to do it, the only way I knew was to build adjacency matrix through graph and vertex.
def adjacency_matrix(n,p)
The n is number of vertex and the p is the probability of there is an edge between 2 vertex.
You can take a look at NetworkX package. You can use the function gnp_random_graph for your purpose. It has the following parameters: