adj_to_edgelist: Converts an adjacency matrix to edgelist and edgeweight using...

View source: R/utils.R

adj_to_edgelistR 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.


wdnet documentation built on May 29, 2024, 9:32 a.m.