Example code using the Boost Graph Library.
Install boost:
sudo apt-get install libboost-all-dev
git clone https://github.com/apslight/Sample-Code.git
g++ sample_code.cpp -o sample_code -Wall
./sample_code
Sample code:
Output:
Sample code:
Output:
Sample code:
Output: