Update main.cpp

move '#include <list>' to graph.h