A graph.cpp, which contain a array based implementation of adjacency list.