Description Usage Arguments Value Examples
View source: R/adjacency.to.edgelist.R
This function converts a weighted or unweighted adjacency matrix to an edge list.
1 | adjacency.to.edgelist(adjacency, directed = NULL, weighted = NULL)
|
adjacency |
The input adjacency matrix. |
directed |
Logical scalar indicating whether the network is directed or undirected. Default is NULL, which means that the function checks whether the adjacency matrix is directed or not. |
weighted |
Logical scalar indicating whether the network is weighted or unweighted. Default is NULL, which means that the function checks whether the adjacency matrix is unweighted or not. |
Returns a matrix with two or three columns. The first column contains the ids of source nodes in the specified network, and the second column contains the ids of target nodes. The third column, specific for a weighted network, contains the weights of edges.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.