Y_to_nonE function

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.

Author(s)

Michael Salter-Townshend

See Also

Y_to_E, Y_to_M, E_to_Y

  • Maintainer: Michael Salter-Townshend
  • License: GPL (>= 2)
  • Last published: 2023-03-22