2列のgraph_tableというテーブルがあります
node_id INT
neighbour_id INT
次の選択クエリを実行する必要があります
SELECT node_id, aggregater_func( neighbour_id ) as neighbourhood FROM graph_table GROUP BY node_id
aggregater_func は、ネイバーをMAP <INT(neighbour_id), INT(frequency)>
この aggregater_func は何ですか?