Return-Path: X-Original-To: apmail-giraph-dev-archive@www.apache.org Delivered-To: apmail-giraph-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B6267DC92 for ; Sat, 11 Aug 2012 19:00:06 +0000 (UTC) Received: (qmail 96615 invoked by uid 500); 11 Aug 2012 19:00:06 -0000 Delivered-To: apmail-giraph-dev-archive@giraph.apache.org Received: (qmail 96473 invoked by uid 500); 11 Aug 2012 19:00:05 -0000 Mailing-List: contact dev-help@giraph.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@giraph.apache.org Delivered-To: mailing list dev@giraph.apache.org Received: (qmail 96464 invoked by uid 99); 11 Aug 2012 19:00:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 19:00:05 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of alessandro@fb.com designates 67.231.153.30 as permitted sender) Received: from [67.231.153.30] (HELO mx0a-00082601.pphosted.com) (67.231.153.30) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 11 Aug 2012 18:59:59 +0000 Received: from pps.filterd (m0004003 [127.0.0.1]) by mx0b-00082601.pphosted.com (8.14.4/8.14.4) with SMTP id q7BIxaHd012786 for ; Sat, 11 Aug 2012 11:59:36 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : subject : date : message-id : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=facebook; bh=25dlvBux+db/791EzMpOhXa/xOqCAx+PyBKIZ7CMqpI=; b=QlFQ+E/FdwwRxQCwZNJmqav+YRqTPzuSYMW5iDu1fIwfUB4ieeocCRJ9jBXyVfRcqVM+ DHGFCZ9Tk/dDHEVKCTGWkR0QXhwgorVkC2/5Xg3h/vK8xCyIQcMJEW6DIHUdX6j/tbWH czs/7yLwjN0796tkbwhekHTiZm7MgB2u3rE= Received: from mail.thefacebook.com (corpout1.snc1.tfbnw.net [66.220.144.38]) by mx0b-00082601.pphosted.com with ESMTP id 16nu8kr3q9-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Sat, 11 Aug 2012 11:59:36 -0700 Received: from SC-MBX01-5.TheFacebook.com ([fe80::f05e:c7f1:c7dd:e640]) by sc-hub03.TheFacebook.com ([192.168.18.198]) with mapi id 14.02.0283.003; Sat, 11 Aug 2012 11:59:36 -0700 From: Alessandro Presta To: "dev@giraph.apache.org" Subject: Re: [jira] [Commented] (GIRAPH-191) Random Walks on Graphs Thread-Topic: [jira] [Commented] (GIRAPH-191) Random Walks on Graphs Thread-Index: AQHNdjdeZufbR9H2+kiC1IZ03kqIpZdTxmuAgAG6HwA= Date: Sat, 11 Aug 2012 18:59:35 +0000 Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.18.252] Content-Type: text/plain; charset="us-ascii" Content-ID: <5845B83D75CA814EBF8F2FE0F7B1FC54@fb.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.7.7855,1.0.260,0.0.0000 definitions=2012-08-11_06:2012-08-10,2012-08-11,1970-01-01 signatures=0 X-Proofpoint-Spam-Reason: safe Hi Gianmarco, I sympathize with that. However, I can't think of a way to avoid it: Vertex needs to be defined in terms of Writables, we depend on that for serialization (which enables communication and fault tolerance). Was it any different in the 0.1 API? The only thing I can think of is that now a vertex with weighted edges needs to return Edge objects in its iterator. That said, if you're writing your own vertex with optimized edge storage, I guess you could add iterators over primitive types, and use those in your algorithm. However, for example, you would still have to wrap values in Writables for message passing. But yeah, if this is for a vertex that gets shipped with Giraph, we probably don't want to do that. Please let me know if I understood the issue and any ideas you might have to improve it. Alessandro On 8/10/12 6:37 PM, "Gianmarco De Francisci Morales" wrote: >Hi Alessandro, > >My main concern is that I need a lot of wrapping objects if I want to keep >data as primitive values in the vertex implementation. >Right now I have some wrapper iterables/iterators that do that, but I >think >all this temporary object creation kind of kills the memory efficiency of >the vertex implementation. > >I am rebasing the patch once again after the aggregator changes (and >trying >to understand how they work now). >As soon as I finish and Jira comes up again I will post an updated patch. > >Cheers, >-- >Gianmarco > > > >On Thu, Aug 9, 2012 at 4:00 PM, Alessandro Presta (JIRA) >wrote: > >> >> [ >>=20 >>https://issues.apache.org/jira/browse/GIRAPH-191?page=3Dcom.atlassian.jir= a. >>plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13431815= #c >>omment-13431815] >> >> Alessandro Presta commented on GIRAPH-191: >> ------------------------------------------ >> >> Gianmarco: can you elaborate more on the difficulties you're having with >> vertex implementation? >> >> > 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 >> > Assignee: Gianmarco De Francisci Morales >> > Attachments: GIRAPH-191-1.patch, GIRAPH-191.2.patch, >> GIRAPH-191.patch, PIG-191.1.patch >> > >> > >> > Implementing RWR on Giraph should be a very simple modification of the >> SimplePageRankVertex code. >> > {code} >> > if ( myID =3D=3D sourceID ) >> > DoubleWritable vertexValue =3D new DoubleWritable((0.15f + 0.85f= * >> sum); >> > else >> > DoubleWritable vertexValue =3D 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: >> > >>=20 >>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 >> >>