isolates | R Documentation |
Returns a list of the isolates in the graph or graph set given by dat
.
isolates(dat, diag=FALSE)
dat |
one or more input graphs. |
diag |
boolean indicating whether adjacency matrix diagonals (i.e., loops) contain meaningful data. |
A vector containing the isolates, or a list of vectors if more than one graph was specified
Carter T. Butts buttsc@uci.edu
Wasserman, S., and Faust, K. (1994). Social Network Analysis: Methods and Applications. Cambridge: Cambridge University Press.
West, D.B. (1996). Introduction to Graph Theory. Upper Saddle River, NJ: Prentice Hall.
is.isolate
, add.isolates
#Generate a test graph
g<-rgraph(20)
g[,4]<-0 #Create an isolate
g[4,]<-0
#List the isolates
isolates(g)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.