Y_to_E function

calculate the edgelist for a given adjacency matrix

calculate the edgelist for a given adjacency matrix

calls C code to quickly transform from adjacency to edgelist

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

Returns

An edgelist matrix E of size NE x 2

Author(s)

Michael Salter-Townshend

See Also

edgelist, E_to_Y

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