Graph package inspired by Sedgewick's lectures.