header file for graph algorithms