c++ graphs