Graph Theory project in C++