Add first stab a a priority graph. It's way too slow to use yet.