summaryrefslogtreecommitdiffstats
path: root/src/lib/eina_graph_bfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/eina_graph_bfs.c')
-rw-r--r--src/lib/eina_graph_bfs.c6
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));