adj_to_edgelist {wdnet}R Documentation

Converts an adjacency matrix to edgelist and edgeweight using the igraph package.

Description

Converts an adjacency matrix to edgelist and edgeweight using the igraph package.

Usage

adj_to_edgelist(adj, directed = TRUE, weighted = TRUE)

Arguments

adj

Adjacency matrix of a network.

directed

Logical, whether the network is directed. This value is passed to igraph::graph_from_adjacency_matrix().

weighted

Logical, whether the network is weighted.

Value

A list of edgelist, edgeweight and directed.


[Package wdnet version 1.2.3 Index]