R: Convert a set of links keyed on source to a single list of...
links.as.edgelist
R Documentation
Convert a set of links keyed on source to a single list of edges.
Description
This function takes as input a collection of links (as used/described
by the model fitting functions in this package) and reproduces the
links as a matrix.
Usage
links.as.edgelist(links)
Arguments
links
A list of links; the format of this is described in rtm.collapsed.gibbs.sampler.
Value
A two-column matrix where each row represents an edge. Note that the
indices in this matrix are 1-indexed rather than 0-indexed.