A simple graph implemented in C++