$\text { Consider a network running a link-state routing protocol with the following topology: }$

The numbers represent link costs. Router A needs to compute the shortest path to all other routers using Dijkstra's algorithm.
After completing the algorithm, what is the total cost of the shortest path from $\textbf{A}$ to $\textbf{D}$ ?
- $4$
- $5$
- $6$
- $7$