powered by
n
dat
addisolates(dat, n)
isolates
g<-rgraph(10,5) #Produce some random graphs dim(g) #Get the dimensions of g g<-addisolates(g,2) #Add 2 isolates to each graph in g dim(g) #Now examine g g
Run the code above in your browser using DataLab