Update graph.h

move '#include <list>' from main.cpp