Y_to_E: calculate the edgelist for a given adjacency matrix

View source: R/adjacency_to_edges.R

Y_to_ER Documentation

calculate the edgelist for a given adjacency matrix

Description

calls C code to quickly transform from adjacency to edgelist

Usage

Y_to_E(N, NE, directed, Y)

Arguments

N

number of nodes

NE

number of edges

directed

logical indicator of directedness; TRUE=>directed FALSE=>undirected

Y

input adjacency matrix

Value

An edgelist matrix E of size NE x 2

Author(s)

Michael Salter-Townshend

See Also

edgelist, E_to_Y


VBLPCM documentation built on March 31, 2023, 9:21 p.m.