R: Convert a network object into a numeric edgelist matrix

as.edgelist {ergm} | R Documentation

## 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`

### 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..

### Note

The `as.edgelist` functions have been moved to the `network` package. See `as.edgelist`

### See Also

See also`as.edgelist`, `as.matrix.network.edgelist`

### Examples

    data(faux.mesa.high)
    as.edgelist(faux.mesa.high)

[Package ergm version 3.8.0 Index]