isolates: List the Isolates in a Graph or Graph Stack

Description Usage Arguments Value Author(s) References See Also Examples

Description

Returns a list of the isolates in the graph or graph set given by dat.

Usage

1

Arguments

dat

one or more input graphs.

diag

boolean indicating whether adjacency matrix diagonals (i.e., loops) contain meaningful data.

Value

A vector containing the isolates, or a list of vectors if more than one graph was specified

Author(s)

Carter T. Butts buttsc@uci.edu

References

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.

See Also

is.isolate, add.isolates

Examples

1
2
3
4
5
6
7
#Generate a test graph
g<-rgraph(20)
g[,4]<-0          #Create an isolate
g[4,]<-0

#List the isolates
isolates(g)


Search within the sna package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.