Transform a nctx graph to an edgelist, i.e. a matrix of \(|V|\times{2}\) with each row containing an edge by its start and target vertex.

as_edgelist(g)

Arguments

g

A nctx graph

Value

An edgelist in the form of an \(|V|\times{2}\) matrix