Y_to_nonE {VBLPCM}R Documentation

calculate a non-edge list from an adjacency matrix

Description

uses C code to quickly calculate all non-edges as a two column matrix given an adjacency matrix. i.e. all zeros in the adjacency matrix will correspond to a row in the non-edgelist nonE

Usage

Y_to_nonE(N, NnonE, directed, Y)

Arguments

N

number of nodes

NnonE

number of non-edges

directed

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

Y

input adjacency matrix

Value

A matrix of the non-edges with NnonE rows and 2 columns where NnonE is the number of non-edges.

Author(s)

Michael Salter-Townshend

See Also

Y_to_E, Y_to_M, E_to_Y


[Package VBLPCM version 2.4.9 Index]