Storing Graphs

I use the following commands to generate small-world networks;

using LightGraphs

g = SimpleDiGraph{Int64} ;

g = watts_strogatz(100,24,0.5,is_directed=true) ;

I would like to generate 100 different small-world networks with a fixed rewiring probability=0.5, and save it in a .jld file. What would be the best format to save them in?

Quick and dirty: use the Serialization module i.e.

using Serialization
serialize("graphfile.bin", g)  # g = deserialize("graphfile.bin")

For using the actual jld format, JLD.jl