edgelist.ergm
returns an edgelist for a network in a format
that is expected by many of the routines of the ergm package.## S3 method for class 'default':
edgelist.ergm(x,\dots)
## S3 method for class 'network':
edgelist.ergm(x, \dots)
## S3 method for class 'matrix':
edgelist.ergm(x, directed=TRUE, check.uniqueness=TRUE,
check.sorted=TRUE, \dots)
edgelist.ergm(as.matrix(x, "edgelist"), directed=is.directed(x))
.
The standard format is as follows: 1. The matrix has two columns
2. No row has two identical entries
3. Each row is unique
4. The rows are in dictionary order: They are sorted by the first column,
then by the second in case of ties
5. If directed=TRUE
, the element in the first column is always
smaller than the element in the second column (otherwise, the entries in that
row are switched before sorting).
as.matrix.network