From commits-return-20141-apmail-commons-commits-archive=commons.apache.org@commons.apache.org Fri Jul 1 07:04:01 2011 Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9FF6F4FE6 for ; Fri, 1 Jul 2011 07:04:01 +0000 (UTC) Received: (qmail 22504 invoked by uid 500); 1 Jul 2011 06:59:10 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 22401 invoked by uid 500); 1 Jul 2011 06:58:48 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 22380 invoked by uid 99); 1 Jul 2011 06:58:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 06:58:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jul 2011 06:58:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id D0F9023889DE for ; Fri, 1 Jul 2011 06:58:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1141840 - in /commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph: Path.java model/InMemoryPath.java Date: Fri, 01 Jul 2011 06:58:22 -0000 To: commits@commons.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110701065822.D0F9023889DE@eris.apache.org> Author: simonetripodi Date: Fri Jul 1 06:58:22 2011 New Revision: 1141840 URL: http://svn.apache.org/viewvc?rev=1141840&view=rev Log: just offered iterables on vertices/edges Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/Path.java commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/Path.java URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/Path.java?rev=1141840&r1=1141839&r2=1141840&view=diff ============================================================================== --- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/Path.java (original) +++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/Path.java Fri Jul 1 06:58:22 2011 @@ -19,7 +19,6 @@ package org.apache.commons.graph; * under the License. */ -import java.util.List; /** * A {@code Path} in a {@link Graph} is a sequence of {@link Vertex} such that from each of its vertices there is an @@ -53,7 +52,7 @@ public interface Path getVertices(); + Iterable getVertices(); /** * Returns the order of a Graph (the number of Vertices); @@ -69,7 +68,7 @@ public interface Path getEdges(); + Iterable getEdges(); /** * Returns the size of a Graph (the number of Edges) Modified: commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java URL: http://svn.apache.org/viewvc/commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java?rev=1141840&r1=1141839&r2=1141840&view=diff ============================================================================== --- commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java (original) +++ commons/sandbox/graph/trunk/src/main/java/org/apache/commons/graph/model/InMemoryPath.java Fri Jul 1 06:58:22 2011 @@ -23,7 +23,6 @@ import static java.lang.String.format; import static java.util.Collections.unmodifiableList; import java.util.LinkedList; -import java.util.List; import org.apache.commons.graph.Edge; import org.apache.commons.graph.Path; @@ -92,7 +91,7 @@ public class InMemoryPath getVertices() + public Iterable getVertices() { return unmodifiableList( vertices ); } @@ -118,7 +117,7 @@ public class InMemoryPath getEdges() + public Iterable getEdges() { return unmodifiableList( edges ); }