# Find path in a directed graph
Last edited: 2025-12-05
# Statement
Find path
between vertices in an directed graph Given an directed graph $G = (V,E)$ and two vertices $a,b \in V$. How can we find a path in $G$ between them. Sometime we will also have a weighting $W: E \rightarrow D$ and we want to minimise the path length.
# Solutions
- DFS to find path in a directed graph
- Runs in $O(\vert V \vert \cdot \vert E \vert)$
- Unweighted.