Return-Path: X-Original-To: apmail-incubator-giraph-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-giraph-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B7BCF9673 for ; Fri, 18 May 2012 17:59:28 +0000 (UTC) Received: (qmail 63249 invoked by uid 500); 18 May 2012 17:59:28 -0000 Delivered-To: apmail-incubator-giraph-dev-archive@incubator.apache.org Received: (qmail 63124 invoked by uid 500); 18 May 2012 17:59:28 -0000 Mailing-List: contact giraph-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: giraph-dev@incubator.apache.org Delivered-To: mailing list giraph-dev@incubator.apache.org Received: (qmail 63113 invoked by uid 99); 18 May 2012 17:59:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 17:59:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 17:59:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8D6BECE34 for ; Fri, 18 May 2012 17:59:06 +0000 (UTC) Date: Fri, 18 May 2012 17:59:06 +0000 (UTC) From: "Gianmarco De Francisci Morales (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: <1395174589.15195.1337363946580.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <631269693.11007.1337288953530.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GIRAPH-191) Random Walks on Graphs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GIRAPH-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279026#comment-13279026 ] Gianmarco De Francisci Morales commented on GIRAPH-191: ------------------------------------------------------- I tested the patch and it looks like it's working. I had to change the config parameter to add .getName() to SOURCE_VERTEX in RandomWalkWithRestartVertex.java:35 {code} /** Configuration parameter for the source vertex */ static final String SOURCE_VERTEX = RandomWalkWithRestartVertex.class.getName() + ".sourceVertex"; {code} Otherwise the String reads as "class blah..." I compared some toy output with a reference implementation and it looks good! I think the next step would be to support weighted graphs. The graph can be made stochastic on the fly, at loading time. Thoughts? I will try to hack some code. > Random Walks on Graphs > ---------------------- > > Key: GIRAPH-191 > URL: https://issues.apache.org/jira/browse/GIRAPH-191 > Project: Giraph > Issue Type: New Feature > Components: examples > Affects Versions: 0.2.0 > Reporter: Gianmarco De Francisci Morales > Attachments: GIRAPH-191-1.patch, GIRAPH-191.patch > > > Implementing RWR on Giraph should be a very simple modification of the SimplePageRankVertex code. > {code} > if ( myID == sourceID ) > DoubleWritable vertexValue = new DoubleWritable((0.15f + 0.85f * sum); > else > DoubleWritable vertexValue = new DoubleWritable(0.85f * sum); > {code} > It would be nice to make it as configurable as possible by using parametric damping factors, preference vectors, strongly preferential, etc... > More or less along these lines: > http://law.dsi.unimi.it/software/docs/it/unimi/dsi/law/rank/PageRank.html -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira