Learn R Programming

fastnet (version 1.0.0)

to.edgelist: fastnet to edgelist

Description

Coerce a fastnet object to edgelist.

Usage

to.edgelist(network, ncores)

Arguments

network

A fastnet object.

ncores

The number of cores to be used.

Value

A 2-column list with each row representing an edge, from source to destination

Examples

Run this code
# NOT RUN {
g <- net.erdos.renyi.gnp(100, 0.1)
el <- to.edgelist(g)
# }

Run the code above in your browser using DataLab