Process graphs in sorted order.