Finished graph algorithms and database code.