Commit 8121a3ff authored by leroyq's avatar leroyq

exo3

parent 9544dba8
......@@ -4,7 +4,7 @@ B = FOREACH A GENERATE *;
-- TODO: compute all the two-hop paths
twohop = JOIN A BY $1 B BY $0;
twohop = JOIN A BY $1, B BY $0;
-- TODO: project the twohop relation such that in output you display only the start and end nodes of the two hop path
p_result = FOREACH twohop GENERATE $0, $3;
......
......@@ -4,10 +4,10 @@ B = FOREACH A GENERATE *;
-- TODO: compute all the two-hop paths
twohop = JOIN A BY fr B BY $2;
twohop = JOIN A BY $1 B BY $0;
-- TODO: project the twohop relation such that in output you display only the start and end nodes of the two hop path
p_result = FOREACH twohop GENERATE id, $2;
p_result = FOREACH twohop GENERATE $0, $3;
-- TODO: make sure you avoid loops (e.g., if user 12 and 13 follow eachother)
result = FILTER p_result BY (id!=fr2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment