Add option to specify edge labeling fns for generated graph and added
fn to save dot files.