working saving on .graph file, had to chenge the model slightly to support edges
working saving on .graph file, had to chenge the model slightly to support edges