Pathfinding for pressure routing