VTK (http://www.vtk.org/) is a visualization library for C++ but has graph processing functions. Thus, I'll try VTK as well.
if [ ! -f vtk-5.8.0.tar.gz ]; then
wget http://www.vtk.org/files/release/5.8/vtk-5.8.0.tar.gz
fi
if [ ! -f vtkdata-5.8.0.tar.gz ]; then
wget http://www.vtk.org/files/release/5.8/vtkdata-5.8.0.tar.gz
fi
tar -xvzof vtk-5.8.0.tar.gz
tar -xvzof vtkdata-5.8.0.tar.gz
cmake-gui
make
sudo make install