Helper function to convert adjacency matrix to edges

adjToEdge(adj)

Arguments

adj

an adjacency matrix