Skip to content
Snippets Groups Projects
Commit f36d5d39 authored by Mark Winter's avatar Mark Winter
Browse files

Only seed with a single popular topic to keep graph more connected

parent 9e056fde
Branches
No related tags found
No related merge requests found
Pipeline #313 failed
......@@ -6,11 +6,12 @@ function [G,S,links,link_map] = reddit_graph(tokenObj)
end
% A few constants
graph_params = struct('max_depth',{3}, 'link_limit',{10}, 'comment_limit',{10}, 'ignore_users',{{'[deleted]';'AutoModerator'}});
graph_params = struct('max_depth',{5}, 'link_limit',{20}, 'comment_limit',{20}, 'ignore_users',{{'[deleted]';'AutoModerator'}});
%% Load first link_limit /r/<subreddit>/hot entries and start building user graph
%% Load first /r/<subreddit>/hot entries and start building user graph
% NOTE: Seed with a single entry so we always have a connected graph
subreddit = 'math';
req = sprintf('r/%s/hot?limit=%d', subreddit, graph_params.link_limit);
req = sprintf('r/%s/hot?limit=%d', subreddit, 1);
r = reddit_query(req, tokenObj);
%% Major structures for checkpointing and graph-linkup
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment