View source: R/extra_functions.R
matrix_to_vec | R Documentation |
The function encodes an adjacency matrix into a vector.
matrix_to_vec(A, type = c("undirected", "directed"))
A |
Adjacency matrix of a network. |
type |
Parameter to specify whether the adjacency matrix represents an |
A vector containing the upper triangular part of an adjacency matrix (if the graph is undirected) or adjacency entry values ordered by column and excluding the diagonal entries (if the graph is directed).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.