graphlib A small python graph library Meant to be single file, no dependencies If you have graphviz you can print graphs to pdf If not it will still work