Implement an algorithm to find the shortest path between two points in a dynamic graph where edge weights change in real-time.