Adds algorithm to create books-only graph

Current approximate runtime is 14 minutes