diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-03-30 22:39:13 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-04-10 08:47:11 +0200 |
commit | 318dc8a0dde38b593d3b5a84fbebe145f6c0e716 (patch) | |
tree | 2777c86d3871cec752cbd066dd4ab55ba68b8a14 /src/lib/eina_graph_bfs.c | |
parent | d44cd9ff53941d72c42c46d1fe73cc36c6969688 (diff) | |
download | eina_graph-318dc8a0dde38b593d3b5a84fbebe145f6c0e716.zip eina_graph-318dc8a0dde38b593d3b5a84fbebe145f6c0e716.tar.gz |
Diffstat (limited to 'src/lib/eina_graph_bfs.c')
-rw-r--r-- | src/lib/eina_graph_bfs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina_graph_bfs.c b/src/lib/eina_graph_bfs.c index c2f2f63..5631683 100644 --- a/src/lib/eina_graph_bfs.c +++ b/src/lib/eina_graph_bfs.c @@ -71,7 +71,7 @@ _eina_graph_bfs_walk(_Eina_Graph *_g, _Eina_Graph_BFS *_bfs, dst = 0; vd = &_bfs->data[s]; vd->m = EINA_TRUE; - vd->e = s; + vd->p = s; vd->d = dst; fifo = eina_list_append(fifo, CAST_V(s)); @@ -90,7 +90,7 @@ _eina_graph_bfs_walk(_Eina_Graph *_g, _Eina_Graph_BFS *_bfs, if (!vd->m) { vd->m = EINA_TRUE; - vd->e = p; + vd->p = p; vd->d = dst; if (has_target && (d == w)) { @@ -188,7 +188,7 @@ eina_graph_bfs_path_get(Eina_Graph_BFS *bfs, unsigned int v) while (w != _bfs->s) { path = eina_list_prepend(path, CAST_V(w)); - w = _bfs->data[w].e; + w = _bfs->data[w].p; } path = eina_list_prepend(path, CAST_V(_bfs->s)); |