changes in class Graph and Tracenode

-in class Graph:
change init
write method optimize
write simple __repr__
-in class Tracenode:
overload __eq__
write method delfromgraph