[Fix] Fix the equals method of the Method object
Create a toDot function in the graph class