To uninstall libboost-graph-dev just follow these instructions.
sudo apt-get remove libboost-graph-dev
This will remove just the libboost-graph-dev package itself.
sudo apt-get remove --auto-remove libboost-graph-dev
This will remove the libboost-graph-dev package and any other dependant packages which are no longer needed.
If you also want to delete your local/config files for libboost-graph-dev then this will work.
sudo apt-get purge libboost-graph-dev
Or similarly, like this libboost-graph-dev
sudo apt-get purge --auto-remove libboost-graph-dev
|Maintainer||Debian Boost Team <firstname.lastname@example.org>|
|Description||generic graph components and algorithms in C++ (default version)|