C++ Graph Project