Pass adjacency list vector by reference only


#1

Or else you keep on creating and deleting memory. Will give MLE.