"obtained the edges from the paths and included them in the json."