Function creates an edge file for SONIA