Corrected the difference function, now it return the difference between the edges of 2 graph.
Made a new test for the parser.
Fixed weight in json generation.