Commit 5b1e0f13 authored by leroyq's avatar leroyq

exo3

parent 8121a3ff
......@@ -10,6 +10,6 @@ twohop = JOIN A BY $1, B BY $0;
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);
result = FILTER p_result BY ($0!=$1);
STORE result INTO './local-output/OSN/twj/';
......@@ -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;
......
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