powered by
n
dat
add.isolates(dat, n, return.as.edgelist = FALSE)
isolates
g<-rgraph(10,5) #Produce some random graphs dim(g) #Get the dimensions of g g<-add.isolates(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