jeudi 15 juin 2017

Plotting Random graph in R with each node degree as 2

I am trying to make a random graph in R with degree of each vertex as 2. I tried sample_g1<-sample_gnm(50,100) but this approach does not work as it uniformly distributes the edges in the graph.

Can you suggest something?




Aucun commentaire:

Enregistrer un commentaire