edges: a data.frame with the following two columns: from (the first node of the edge) and to (the second node of the edge). The output of the functions create_edge_list() or append_edge_lists().
lower: a logical value. If TRUE (default), keep values in the lower triangle of the matrix. Otherwise they will be replaced by NA
(or 0).
upper: a logical value. If TRUE (default), keep values in the upper triangle of the matrix. Otherwise they will be replaced by NA
(or 0).
diag: a logical value. If TRUE (default), keep values in the diagonal of the matrix. Otherwise they will be replaced by NA
(or 0).
na_to_zero: a logical value. If TRUE (default), missing edges are coded as 0. Otherwise they will be coded as NA.
Returns
A connectivity matrix of dimensions n x n, where n is the number of nodes.