Recodes an edgelist such that ids go from 1 to n
1 2 3 4 5 6 7
Edgelist as either a matrix or dataframe with ego and alter
Further arguments for the method (ignored)
Required for using most of the package's functions, as ids are used as a reference for accessing elements in adjacency matrices.
A recoded edgelist as a two-column matrix/data.frame depending
on the class of
data. The output includes an attribute called "recode"
which contains a two column data.frame providing a mapping between the
previous code and the new code (see the examples)
George G. Vega Yon
1 2 3 4 5 6 7 8
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.