Reworked graph.h.
Some little changes in list.