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 BCB70C7B2 for ; Fri, 18 May 2012 10:50:33 +0000 (UTC) Received: (qmail 12272 invoked by uid 500); 18 May 2012 10:50:33 -0000 Delivered-To: apmail-incubator-giraph-dev-archive@incubator.apache.org Received: (qmail 12125 invoked by uid 500); 18 May 2012 10:50:32 -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 12079 invoked by uid 99); 18 May 2012 10:50:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 May 2012 10:50:31 +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 10:50:29 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 25C3FC799 for ; Fri, 18 May 2012 10:50:08 +0000 (UTC) Date: Fri, 18 May 2012 10:50:08 +0000 (UTC) From: "Paolo Castagna (JIRA)" To: giraph-dev@incubator.apache.org Message-ID: <787411486.13532.1337338208156.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <631269693.11007.1337288953530.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (GIRAPH-191) Random Walk with Restart MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/GIRAPH-191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13278712#comment-13278712 ] Paolo Castagna commented on GIRAPH-191: --------------------------------------- It would be good if we could also use this or provide a PageRank implementation which deals with dangling nodes/vertexes properly. Dangling vertexes are vertexes with no edges. SinglePageRankVertex has: {code} if (getSuperstep() < MAX_SUPERSTEPS) { long edges = getNumOutEdges(); sendMsgToAllEdges( new DoubleWritable(getVertexValue().get() / edges)); } else { voteToHalt(); } {code} This does not work when getNumOutEdges() returns 0. Some suggest to divide the PageRank scores of dangling vertexes evenly among all other vertex (it's yet another sort of random jump to propagate PageRank scores to all nodes). This can be implemented in Giraph as a separate superstep using a SumAggregator. Discussion on the giraph-user mailing list with further comments and references is here: - http://mail-archives.apache.org/mod_mbox/incubator-giraph-user/201205.mbox/%3C4FB509F4.4040407@googlemail.com%3E > Random Walk with Restart > ------------------------ > > Key: GIRAPH-191 > URL: https://issues.apache.org/jira/browse/GIRAPH-191 > Project: Giraph > Issue Type: New Feature > Reporter: Gianmarco De Francisci Morales > Attachments: 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