Simple library for a couple graph algorithms