Return-Path: X-Original-To: apmail-commons-dev-archive@www.apache.org Delivered-To: apmail-commons-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 213F09E94 for ; Sat, 3 Mar 2012 16:12:13 +0000 (UTC) Received: (qmail 17017 invoked by uid 500); 3 Mar 2012 16:12:12 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 16913 invoked by uid 500); 3 Mar 2012 16:12:12 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 16905 invoked by uid 99); 3 Mar 2012 16:12:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 16:12:12 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of squarcel@dia.uniroma3.it designates 193.205.219.56 as permitted sender) Received: from [193.205.219.56] (HELO mail3.dia.uniroma3.it) (193.205.219.56) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2012 16:12:05 +0000 Received: from hyper.local (93-41-226-173.ip83.fastwebnet.it [93.41.226.173]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: squarcel) by mail3.dia.uniroma3.it (Postfix) with ESMTPSA id 4D79A63E7A for ; Sat, 3 Mar 2012 17:11:45 +0100 (CET) Message-ID: <4F5242BF.6080205@dia.uniroma3.it> Date: Sat, 03 Mar 2012 17:11:43 +0100 From: Claudio Squarcella Organization: Roma Tre University User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2 MIME-Version: 1.0 To: dev@commons.apache.org Subject: Re: [graph] Why the Vertex and Edge interfaces? References: <4F508774.7080905@dia.uniroma3.it> <4F513A1F.1030103@dia.uniroma3.it> <4F5167CB.4060306@dia.uniroma3.it> <4F521202.7010207@dia.uniroma3.it> <4F52236C.9000708@dia.uniroma3.it> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Simone, answering briefly below: > Vertex is something we can safety drop because we > know its nature at priori, markers are unnecessary.This is fine. +1. > what is the sense, at that point, on keeping the Edge?!! It would be > more than enough to know which is the Head and which is the Tail in > the Edge to get the W! good observation. My 2 cents: it might still make sense for users to map their existing domain (including "edges") to the graph (e.g. Routers to Vertices and Cables to Edges) and "get it back" as soon as they are done with graph operations (e.g. once they find the shortest path, they automatically have the sequence of Cables they need). > maybe because they implement OrderedMonoid? :) > [...] > how much would Addition and Multiplication interface differ each other? > [...] > that would be fine, what is not clear is that Monoids expose the same > interface, so *Operations class implementation canot declare same > method multiple times answering all the above: that is another reason why I would like our current Monoid to be called Addition (and Addition#sum instead of Monoid#append, etc), so that it is semantically clearer and later we can introduce Multiplication as a completely independent interface. > enough talk IMHO, time to code and make concrete proposals Sure! I'll play with weights first, because I already know what I want to do. As for Vertex/Edge markers I still see valuable feedback coming in, so I'll wait a bit. Branching is ok -- especially for the second part which sounds like a real earthquake ;) Ciao, Claudio -- Claudio Squarcella PhD student at Roma Tre University http://www.dia.uniroma3.it/~squarcel http://squarcella.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org