Helper function to convert edges to JSON

edgeToJSON_matrix(edges)

Arguments

edges

a matrix of edge relationships