A collection of functions for solving problems using graphs