Create an network object from an adjacency list
Usage
adjacencylist_weightednetwork(
adjacencylist,
is_undirected = FALSE,
above_diagonal = is_undirected
)
Arguments
- adjacencylist
a list of vectors containing the neighbours of each node. Same format as the return value of
weighted_network_adjacencylist
.- is_undirected
TRUE
if the network is supposed to be undirected, i.e. contains a link from \(i\) to \(j\) exactly if it contains a link from \(j\) to \(i\).- above_diagonal
set to
TRUE
if the network is undirected and the adjacencylist only contains edges \(i,j\) with \(i \leq j\), i.e. represent the upper triangular submatrix of the adjacency matrix. Defaults toTRUE
for undirected networks.