From 2a9210688f80d82980215056f25dc862575c9ef4 Mon Sep 17 00:00:00 2001 From: Yi Lu Date: Fri, 18 Jul 2014 16:57:20 +0800 Subject: [PATCH 1/2] bug fix in inmemconncomps --- example_apps/inmemconncomps.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/example_apps/inmemconncomps.cpp b/example_apps/inmemconncomps.cpp index 5f6c84dc..6f17af5d 100644 --- a/example_apps/inmemconncomps.cpp +++ b/example_apps/inmemconncomps.cpp @@ -82,7 +82,11 @@ struct ConnectedComponentsProgram : public GraphChiProgram Date: Fri, 18 Jul 2014 17:35:05 +0800 Subject: [PATCH 2/2] solve issue 27 --- example_apps/application_template.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_apps/application_template.cpp b/example_apps/application_template.cpp index a8773c44..80899282 100644 --- a/example_apps/application_template.cpp +++ b/example_apps/application_template.cpp @@ -54,7 +54,7 @@ struct MyGraphChiProgram : public GraphChiProgram */ void update(graphchi_vertex &vertex, graphchi_context &gcontext) { - if (ginfo.iteration == 0) { + if (gcontext.iteration == 0) { /* On first iteration, initialize vertex (and its edges). This is usually required, because on each run, GraphChi will modify the data files. To start from scratch, it is easiest do initialize the program in code. Alternatively, you can keep a copy of initial data files. */