Learn R Programming

ergm (version 3.10.4)

as.edgelist: Convert a network object into a numeric edgelist matrix

Description

Constructs an edgelist in the format expected by ergm's internal functions

NOTE: the as.edgelist functions have been moved to the network package, and this help file may be removed in the future. See as.edgelist

Arguments

Details

Constructs an edgelist matrix from a network, sorted tails-major order, with tails first, and, for undirected networks, tail < head.

The as.matrix.network(nw, matrix.type="edgelist") provides similar functionality but it does not enforce ordering..

See Also

See alsoas.edgelist, as.matrix.network.edgelist

Examples

Run this code
# NOT RUN {
data(faux.mesa.high)
as.edgelist(faux.mesa.high)
# }

Run the code above in your browser using DataLab