Return-Path: X-Original-To: apmail-giraph-user-archive@www.apache.org Delivered-To: apmail-giraph-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B2FB610FA0 for ; Sat, 11 Jan 2014 17:23:10 +0000 (UTC) Received: (qmail 30157 invoked by uid 500); 11 Jan 2014 17:23:01 -0000 Delivered-To: apmail-giraph-user-archive@giraph.apache.org Received: (qmail 30076 invoked by uid 500); 11 Jan 2014 17:22:56 -0000 Mailing-List: contact user-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@giraph.apache.org Delivered-To: mailing list user@giraph.apache.org Received: (qmail 30067 invoked by uid 99); 11 Jan 2014 17:22:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 17:22:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [155.207.1.45] (HELO hermes7.ccf.auth.gr) (155.207.1.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Jan 2014 17:22:47 +0000 Received: from [192.168.1.2] (dsl-aauu7m.dyn.edudsl.gr [37.32.166.114]) (authenticated bits=0) by hermes7.ccf.auth.gr (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id s0BHMPQd012867 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Sat, 11 Jan 2014 19:22:26 +0200 Message-ID: <52D17DCB.8000206@csd.auth.gr> Date: Sat, 11 Jan 2014 19:22:19 +0200 From: =?UTF-8?B?zpfOu86vzrHPgiDOms6xz4DOv8+Fz4HOrM69zrfPgg==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: user@giraph.apache.org Subject: Re: Running one compute function after another.. References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.97.8 at hermes7 X-Virus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org Hey, You can have a boolean variable initially set to true(or false, whatever). Then you divide your code based on the value of that variable with an if-else statement. For my example, if the value is true then it goes through the first 'if'. When the condition you want is fullfilled, change the value of the variable to false (at all nodes) and then the second part will be executed. Ilias Στις 11/1/2014 6:18 μμ, ο/η Jyoti Yadav έγραψε: > Hi folks.. > > > In my algorithm,all vertices execute one compute function upto certain > condition, when that condition is fulfilled,i want that all vertices > now execute another compute function.Is it possible?? > > Any ideas are highly appreciated.. > > Thanks > Jyoti