Graph implementation in C++ (.cc)

Code is tested and is in working condition (for both cyclic as well as acyclic graph). The code was compiled with g++ (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3.