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

Start again from checkpoint

parent b461b366
Branches
No related tags found
No related merge requests found
......@@ -31,8 +31,16 @@ function [G,S,links,link_map] = reddit_graph(tokenObj)
seed_links = create_new_links(popular_links, 0, link_map, graph_params);
[links,S] = add_links(seed_links, links,S);
% Run through all listings breadth-first
link_idx = 1;
%% If there exist any checkpoints start from the latest one
chkpoint_list = dir('reddit_chkpoint_*.mat');
if ( ~isempty(chkpoint_list) )
load(chkpoint_list(end).name);
end
%%
% Run through all listings breadth-first
while ( link_idx <= length(links) )
[new_links,G,S] = process_link(links,link_idx, G,S,link_map, graph_params, tokenObj);
[links,S] = add_links(new_links, links,S);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment