putting graph problems back to the queue