calculate a non-edge list from an adjacency matrix
calculate a non-edge list from an adjacency matrix
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
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
Returns
A matrix of the non-edges with NnonE rows and 2 columns where NnonE is the number of non-edges.