Fix variable name [closes #21]

This commit is contained in:
Antti H S Laaksonen 2017-03-10 14:17:04 +02:00
parent 6d97177d7d
commit ae269921eb
1 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ and the array \texttt{e} will contain the
distances to all nodes in the graph.
The search can be implemented as follows:
\begin{lstlisting}
z[s] = 1; e[x] = 0;
z[x] = 1; e[x] = 0;
q.push(x);
while (!q.empty()) {
int s = q.front(); q.pop();