Helper function to convert an igraph to JSON

edgeToJSON_igraph(graph)

Arguments

graph

an igraph