Commit 8a311e3b authored by leroyq's avatar leroyq

twt4

parent ac96239a
......@@ -8,6 +8,6 @@ C = FOREACH B GENERATE id;
D = GROUP C BY id;
friends = FOREACH D GENERATE group, COUNT(D);
friends = FOREACH D GENERATE group, COUNT(C);
STORE friends INTO './local-output/OSN/twc/';
......@@ -4,7 +4,7 @@ dataset = LOAD 'tw.txt' AS (id: long, fr: long);
B = FILTER dataset BY (id>0);
-- TODO: organize data such that each node ID is associated to a list of neighbors
C = FOREACH B GENERATE id
C = FOREACH B GENERATE id;
D = GROUP C BY id;
......
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