Produces a list of edges from an adjacency matrix.
edges(amat)
amat
An adjacency matrix.
A list consisting of two lists: One for oriented edges ($dir), and one for unoriented edges ($undir).
$dir
$undir