Graph-based Path Planning with Dynamic Obstacle Avoidance for Autonomous Parking