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 AEC5E9FC9 for ; Sun, 18 Mar 2012 19:58:05 +0000 (UTC) Received: (qmail 10558 invoked by uid 500); 18 Mar 2012 19:58:05 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 10451 invoked by uid 500); 18 Mar 2012 19:58:05 -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 10443 invoked by uid 99); 18 Mar 2012 19:58:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2012 19:58:04 +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 simone.tripodi@gmail.com designates 209.85.216.171 as permitted sender) Received: from [209.85.216.171] (HELO mail-qc0-f171.google.com) (209.85.216.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Mar 2012 19:57:58 +0000 Received: by qcsp15 with SMTP id p15so1292531qcs.30 for ; Sun, 18 Mar 2012 12:57:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; bh=B6eGItArG6Zo5CdDAzPMD6ertk25J7wztm360/qvafs=; b=mA0ma1pDYeuZSQ6WlbzxXGL2TbBTvEUcsnZ+lgGKyuhgW4EEXsgS/jSo+gpeK7slTY LfEm3Dmt5SgzECuXA0yFXUHT33l+jbQewsPe6t3LAhsEBcHtwoksAeXLHueq69xhPufh qYJD7GMmUHsOzm0OqS9wP69TuGYVdTknpw5OBNfwki6QhiXuVEpcl2Z8H6dJ6OcN864r s/4nTKG/s2D1K1Dn3xlEBx/L85BLcF8ucUvKe+K5IOnDMUwRr6g/ianm1VZnKMqGYG/F H7F54JID5iJZIlsCwbeNtMzNX84TKebCcWq7pAFu1HpY4/feQp+dcFmeEHL3q/Ue1E35 hVPw== MIME-Version: 1.0 Received: by 10.224.138.84 with SMTP id z20mr12284869qat.43.1332100657614; Sun, 18 Mar 2012 12:57:37 -0700 (PDT) Sender: simone.tripodi@gmail.com Received: by 10.224.195.73 with HTTP; Sun, 18 Mar 2012 12:57:37 -0700 (PDT) In-Reply-To: <20120318191221.643012388860@eris.apache.org> References: <20120318191221.643012388860@eris.apache.org> Date: Sun, 18 Mar 2012 20:57:37 +0100 X-Google-Sender-Auth: aGjJG2iGWN9XR9vCJiqf5hjflQI Message-ID: Subject: Re: svn commit: r1302199 - in /commons/sandbox/graph/branches/exporters-with-mappers/src: main/java/org/apache/commons/graph/ main/java/org/apache/commons/graph/export/ test/java/org/apache/commons/graph/export/ From: Simone Tripodi To: dev@commons.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org concept is cool I'll check it out to see how to help,, wrong code style anyway :P congrats! -Simo http://people.apache.org/~simonetripodi/ http://simonetripodi.livejournal.com/ http://twitter.com/simonetripodi http://www.99soft.org/ On Sun, Mar 18, 2012 at 8:12 PM, wrote: > Author: cs > Date: Sun Mar 18 19:12:20 2012 > New Revision: 1302199 > > URL: http://svn.apache.org/viewvc?rev=3D1302199&view=3Drev > Log: > proof of concept with tests using the new proposed API -- the code compil= es but it does not work yet > > Modified: > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/CommonsGraph.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/AbstractExporter.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/DefaultNamedExportSelector.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/DefaultToStreamBuilder.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/DotExporter.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/ExportSelctor.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/ma= in/java/org/apache/commons/graph/export/GraphMLExporter.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/te= st/java/org/apache/commons/graph/export/EdgeLabelMapper.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/te= st/java/org/apache/commons/graph/export/EdgeWeightMapper.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/te= st/java/org/apache/commons/graph/export/ExportTestCase.java > =C2=A0 =C2=A0commons/sandbox/graph/branches/exporters-with-mappers/src/te= st/java/org/apache/commons/graph/export/VertexLabelMapper.java > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/CommonsGraph.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/CommonsGraph.java?rev= =3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/CommonsGraph.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/CommonsGraph.java Sun Mar 18 19:12:20 2012 > @@ -35,7 +35,9 @@ import org.apache.commons.graph.coloring > =C2=A0import org.apache.commons.graph.coloring.DefaultColorsBuilder; > =C2=A0import org.apache.commons.graph.connectivity.ConnectivityBuilder; > =C2=A0import org.apache.commons.graph.connectivity.DefaultConnectivityBui= lder; > +import org.apache.commons.graph.export.DefaultNamedExportSelector; > =C2=A0import org.apache.commons.graph.export.DefaultToStreamBuilder; > +import org.apache.commons.graph.export.ExportSelctor; > =C2=A0import org.apache.commons.graph.export.ToStreamBuilder; > =C2=A0import org.apache.commons.graph.flow.DefaultFlowWeightedEdgesBuilde= r; > =C2=A0import org.apache.commons.graph.flow.FlowWeightedEdgesBuilder; > @@ -56,10 +58,10 @@ import org.apache.commons.graph.visit.Vi > =C2=A0public final class CommonsGraph> > =C2=A0{ > > - =C2=A0 =C2=A0public static > ToStreamBuilde= r export( G graph ) > + =C2=A0 =C2=A0public static > ExportSelctor<= V, E> export( G graph ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 graph =3D checkNotNull( graph, "Null graph ca= n not be exported" ); > - =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DefaultToStreamBuilder( gra= ph ); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DefaultNamedExportSelector(= graph ); > =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 public static > Color= sBuilder coloring( G graph ) > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/AbstractExporter.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/AbstractExport= er.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/AbstractExporter.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/AbstractExporter.java Sun Mar 18 19:12:20 20= 12 > @@ -21,7 +21,9 @@ package org.apache.commons.graph.export; > > =C2=A0import static java.lang.String.format; > > +import java.io.File; > =C2=A0import java.io.IOException; > +import java.io.OutputStream; > =C2=A0import java.io.Writer; > =C2=A0import java.util.Date; > =C2=A0import java.util.HashMap; > @@ -59,7 +61,41 @@ abstract class AbstractExporter > =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.name =3D name !=3D null ? name : G; > =C2=A0 =C2=A0 } > > - =C2=A0 =C2=A0protected final Graph getGraph() > + =C2=A0 =C2=A0public AbstractExporter(Graph graph) { > + =C2=A0 =C2=A0 =C2=A0 this( graph, null ); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public AbstractExporter(Graph graph, String = name) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= constructor stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.graph =3D graph; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.writer =3D null; > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.vertexProperties = =3D new HashMap>(); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.edgeProperties = =3D new HashMap>(); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 this.name =3D name != =3D null ? name : G; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public abstract AbstractExporte= r withEdgeWeights(Mapper edgeWeights); > + > + =C2=A0 =C2=A0 =C2=A0 public abstract AbstractExporte= r withVertexWeights( Mapper vertexWeights ); > + > + =C2=A0 =C2=A0 =C2=A0 public abstract AbstractExporter withEdgeLab= els( Mapper edgeLabels ); > + > + =C2=A0 =C2=A0 =C2=A0 public abstract AbstractExporter withVertexL= abels( Mapper vertexLabels ); > + > + =C2=A0 =C2=A0 =C2=A0 public void to( File outputFile ) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public void to( OutputStream outputStream ) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0public void to( Writer writer ) { > + =C2=A0 =C2=A0 =C2=A0 // TODO > + =C2=A0 =C2=A0} > + > + > + =C2=A0 =C2=A0 =C2=A0 protected final Graph getGraph() > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return graph; > =C2=A0 =C2=A0 } > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/DefaultNamedExportSelector.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/DefaultNamedEx= portSelector.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DefaultNamedExportSelector.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DefaultNamedExportSelector.java Sun Mar 18 1= 9:12:20 2012 > @@ -19,60 +19,43 @@ package org.apache.commons.graph.export; > =C2=A0* under the License. > =C2=A0*/ > > -import static org.apache.commons.graph.utils.Assertions.*; > - > -import java.io.Writer; > -import java.util.Collection; > -import java.util.HashMap; > -import java.util.LinkedList; > -import java.util.Map; > - > =C2=A0import org.apache.commons.graph.Graph; > -import org.apache.commons.graph.Mapper; > > -final class DefaultNamedExportSelector > - =C2=A0 =C2=A0implements NamedExportSelctor > +public final class DefaultNamedExportSelector > + =C2=A0 =C2=A0implements ExportSelctor > =C2=A0{ > > =C2=A0 =C2=A0 private final Graph graph; > + > + =C2=A0 =C2=A0public DefaultNamedExportSelector(Graph graph) { > + =C2=A0 =C2=A0 =C2=A0 this.graph =3D graph; > + =C2=A0 =C2=A0 =C2=A0 } > > - =C2=A0 =C2=A0private final Writer writer; > - > - =C2=A0 =C2=A0private final Map> vertexProperties = =3D new HashMap>(); > - > - =C2=A0 =C2=A0private final Map> edgeProperties =3D= new HashMap>(); > - > - =C2=A0 =C2=A0private final String name; > - > - =C2=A0 =C2=A0public DefaultNamedExportSelector( Graph graph, Writ= er writer ) > - =C2=A0 =C2=A0{ > - =C2=A0 =C2=A0 =C2=A0 =C2=A0this( graph, writer, null ); > - =C2=A0 =C2=A0} > - > - =C2=A0 =C2=A0public DefaultNamedExportSelector( Graph graph, Writ= er writer, String name ) > - =C2=A0 =C2=A0{ > - =C2=A0 =C2=A0 =C2=A0 =C2=A0this.graph =3D graph; > - =C2=A0 =C2=A0 =C2=A0 =C2=A0this.writer =3D writer; > - =C2=A0 =C2=A0 =C2=A0 =C2=A0this.name =3D name; > - =C2=A0 =C2=A0} > - > - =C2=A0 =C2=A0public void usingDotNotation() > + =C2=A0 =C2=A0 =C2=A0 public DotExporter usingDotNotation() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws GraphExportException > =C2=A0 =C2=A0 { > - =C2=A0 =C2=A0 =C2=A0 =C2=A0new DotExporter( graph, writer, vertex= Properties, edgeProperties, name ).export(); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DotExporter( graph ); > =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public DotExporter usingDotNotation(String n= ame) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 throws GraphExportException > + =C2=A0 =C2=A0 =C2=A0 { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return new DotExporter= ( graph, name ); > + =C2=A0 =C2=A0 =C2=A0 } > > - =C2=A0 =C2=A0public void usingGraphMLFormat() > + =C2=A0 =C2=A0public GraphMLExporter usingGraphMLFormat() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws GraphExportException > =C2=A0 =C2=A0 { > - =C2=A0 =C2=A0 =C2=A0 =C2=A0new GraphMLExporter( graph, writer, ve= rtexProperties, edgeProperties, name ).export(); > - =C2=A0 =C2=A0} > - > - =C2=A0 =C2=A0public ExportSelctor withName( String name ) > - =C2=A0 =C2=A0{ > - =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DefaultNamedExportSelector(= graph, writer, name ); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0return new GraphMLExporter( graph ); > =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter usingGraphMLFormat(St= ring name) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 throws GraphExportException > + =C2=A0 =C2=A0 =C2=A0 { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return new GraphMLExpo= rter( graph, name ); > + =C2=A0 =C2=A0 =C2=A0 } > > + =C2=A0 =C2=A0/* > =C2=A0 =C2=A0 public EdgeMapperSelector withEdgeProperty( String na= me ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 final String checkedName =3D checkNotNull( na= me, "Null Edge property not admitted" ); > @@ -103,6 +86,7 @@ final class DefaultNamedExportSelector =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 =C2=A0 =C2=A0 }; > - =C2=A0 =C2=A0} > + =C2=A0 =C2=A0}//*/ > + > > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/DefaultToStreamBuilder.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/DefaultToStrea= mBuilder.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DefaultToStreamBuilder.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DefaultToStreamBuilder.java Sun Mar 18 19:12= :20 2012 > @@ -62,7 +62,7 @@ public final class DefaultToStreamBuilde > =C2=A0 =C2=A0 public ExportSelctor to( Writer writer ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 writer =3D checkNotNull( writer, "Impossibe t= o export the graph in a null stream" ); > - =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DefaultNamedExportSelector(= graph, writer ); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0return new DefaultNamedExportSelector(= graph ); > =C2=A0 =C2=A0 } > > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/DotExporter.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/DotExporter.ja= va?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DotExporter.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/DotExporter.java Sun Mar 18 19:12:20 2012 > @@ -21,7 +21,6 @@ package org.apache.commons.graph.export; > > =C2=A0import java.io.PrintWriter; > =C2=A0import java.io.Writer; > -import java.util.Collection; > =C2=A0import java.util.Map; > =C2=A0import java.util.Map.Entry; > > @@ -55,7 +54,15 @@ final class DotExporter > =C2=A0 =C2=A0 =C2=A0 =C2=A0 super( graph, writer, vertexProperties, edgeP= roperties, name ); > =C2=A0 =C2=A0 } > > - =C2=A0 =C2=A0private PrintWriter printWriter; > + =C2=A0 =C2=A0public DotExporter(Graph graph) { > + =C2=A0 =C2=A0 =C2=A0 super( graph ); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public DotExporter(Graph graph, String name)= { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 super( graph, name ); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 private PrintWriter printWriter; > > =C2=A0 =C2=A0 private String connector; > > @@ -163,4 +170,31 @@ final class DotExporter > =C2=A0 =C2=A0 =C2=A0 =C2=A0 } > =C2=A0 =C2=A0 } > > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public DotExporter > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 withEdgeWeights(Mapper edgeWei= ghts) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public DotExporter withVe= rtexWeights( > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Mapper vertexWeights) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public DotExporter withEdgeLabels(Mapper edgeLabels) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public DotExporter withVertexLabels( > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Mapper vertexLabels) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/ExportSelctor.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/ExportSelctor.= java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/ExportSelctor.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/ExportSelctor.java Sun Mar 18 19:12:20 2012 > @@ -1,7 +1,5 @@ > =C2=A0package org.apache.commons.graph.export; > > -import org.apache.commons.graph.Mapper; > - > =C2=A0/* > =C2=A0* Licensed to the Apache Software Foundation (ASF) under one > =C2=A0* or more contributor license agreements. =C2=A0See the NOTICE file > @@ -24,20 +22,26 @@ import org.apache.commons.graph.Mapper; > =C2=A0public interface ExportSelctor > =C2=A0{ > > - =C2=A0 =C2=A0VertexMapperSelector withVertexProperty( String name= ); > + =C2=A0 =C2=A0//VertexMapperSelector withVertexProperty( String na= me ); > > - =C2=A0 =C2=A0EdgeMapperSelector withEdgeProperty( String name ); > + =C2=A0 =C2=A0//EdgeMapperSelector withEdgeProperty( String name )= ; > > =C2=A0 =C2=A0 /** > =C2=A0 =C2=A0 =C2=A0* Export Graphs in DOT language. > =C2=A0 =C2=A0 =C2=A0*/ > - =C2=A0 =C2=A0void usingDotNotation() > + =C2=A0 =C2=A0DotExporter usingDotNotation() > + =C2=A0 =C2=A0 =C2=A0 =C2=A0throws GraphExportException; > + > + =C2=A0 =C2=A0DotExporter usingDotNotation( String name ) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws GraphExportException; > > =C2=A0 =C2=A0 /** > =C2=A0 =C2=A0 =C2=A0* Export Graphs in GraphML file format. > =C2=A0 =C2=A0 =C2=A0*/ > - =C2=A0 =C2=A0void usingGraphMLFormat() > + =C2=A0 =C2=A0GraphMLExporter usingGraphMLFormat() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws GraphExportException; > + > + =C2=A0 =C2=A0GraphMLExporter usingGraphMLFormat( String name ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0throws GraphExportException; > > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/main/= java/org/apache/commons/graph/export/GraphMLExporter.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/main/java/org/apache/commons/graph/export/GraphMLExporte= r.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/GraphMLExporter.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/main/java/o= rg/apache/commons/graph/export/GraphMLExporter.java Sun Mar 18 19:12:20 201= 2 > @@ -86,7 +86,15 @@ final class GraphMLExporter > =C2=A0 =C2=A0 =C2=A0 =C2=A0 super( graph, writer, vertexProperties, edgeP= roperties, name ); > =C2=A0 =C2=A0 } > > - =C2=A0 =C2=A0@Override > + =C2=A0 =C2=A0public GraphMLExporter(Graph graph) { > + =C2=A0 =C2=A0 =C2=A0 super( graph ); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter(Graph graph, String n= ame) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 super( graph, name ); > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > =C2=A0 =C2=A0 protected void startSerialization() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws Exception > =C2=A0 =C2=A0 { > @@ -183,4 +191,31 @@ final class GraphMLExporter > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return STRING; > =C2=A0 =C2=A0 } > > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 withEdgeWeights(Mapper edgeWei= ghts) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter wi= thVertexWeights( > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Mapper vertexWeights) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter withEdgeLabels(Mapper= edgeLabels) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > + =C2=A0 =C2=A0 =C2=A0 @Override > + =C2=A0 =C2=A0 =C2=A0 public GraphMLExporter withVertexLabels( > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 Mapper vertexLabels) { > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 // TODO Auto-generated= method stub > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 return null; > + =C2=A0 =C2=A0 =C2=A0 } > + > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/test/= java/org/apache/commons/graph/export/EdgeLabelMapper.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/test/java/org/apache/commons/graph/export/EdgeLabelMappe= r.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/EdgeLabelMapper.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/EdgeLabelMapper.java Sun Mar 18 19:12:20 201= 2 > @@ -26,7 +26,6 @@ public final class EdgeLabelMapper > =C2=A0 =C2=A0 implements Mapper, String> > =C2=A0{ > > - =C2=A0 =C2=A0@Override > =C2=A0 =C2=A0 public String map( BaseLabeledWeightedEdge input ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return input.getLabel(); > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/test/= java/org/apache/commons/graph/export/EdgeWeightMapper.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/test/java/org/apache/commons/graph/export/EdgeWeightMapp= er.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/EdgeWeightMapper.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/EdgeWeightMapper.java Sun Mar 18 19:12:20 20= 12 > @@ -26,7 +26,6 @@ public final class EdgeWeightMapper > =C2=A0 =C2=A0 implements Mapper, Double> > =C2=A0{ > > - =C2=A0 =C2=A0@Override > =C2=A0 =C2=A0 public Double map( BaseLabeledWeightedEdge input ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return input.getWeight(); > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/test/= java/org/apache/commons/graph/export/ExportTestCase.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/test/java/org/apache/commons/graph/export/ExportTestCase= .java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/ExportTestCase.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/ExportTestCase.java Sun Mar 18 19:12:20 2012 > @@ -22,7 +22,6 @@ package org.apache.commons.graph.export; > =C2=A0import static org.apache.commons.graph.CommonsGraph.export; > =C2=A0import static org.apache.commons.graph.CommonsGraph.newUndirectedMu= tableGraph; > > -import org.apache.commons.graph.Mapper; > =C2=A0import org.apache.commons.graph.builder.AbstractGraphConnection; > =C2=A0import org.apache.commons.graph.model.BaseLabeledVertex; > =C2=A0import org.apache.commons.graph.model.BaseLabeledWeightedEdge; > @@ -69,11 +68,13 @@ public class ExportTestCase { > =C2=A0 =C2=A0 public void shouldPrintDotFormat() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws Exception > =C2=A0 =C2=A0 { > - =C2=A0 =C2=A0 =C2=A0 =C2=A0export( actual ).to( System.out ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withVertexProperty( "label" ).expandedBy( new VertexLabelMapp= er() ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeProperty( "label" ).expandedBy( new EdgeLabelMapper()= ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeProperty( "weight" ).expandedBy( new EdgeWeightMapper= () ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.usingDotNotation(); > + > + =C2=A0 =C2=A0 =C2=A0 export( actual ).usingDotNotation() > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 .withVertexLabels( new VertexLabelMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 .withEdgeWeights( new EdgeWeightMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 .withEdgeLabels( new EdgeLabelMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 .to( System.out ); > + > =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 @Test > @@ -81,18 +82,20 @@ public class ExportTestCase { > =C2=A0 =C2=A0 public void shouldPrintGraphML() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws Exception > =C2=A0 =C2=A0 { > - =C2=A0 =C2=A0 =C2=A0 =C2=A0export( actual ).to( System.out ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withVertexProperty( "label" ).expandedBy( new VertexLabelMapp= er() ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeProperty( "label" ).expandedBy( new EdgeLabelMapper()= ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeProperty( "weight" ).expandedBy( new EdgeWeightMapper= () ) > - =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.usingGraphMLFormat(); > + > + =C2=A0 =C2=A0 =C2=A0 export( actual ).usingGraphMLFormat() > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withVertexLabels( new VertexLabelMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeWeights( new EdgeWeightMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.withEdgeLabels( new EdgeLabelMapper() ) > + =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0.to( System.out ); > + > =C2=A0 =C2=A0 } > > =C2=A0 =C2=A0 @Test > =C2=A0 =C2=A0 public void shouldPrintGraphMLFormat() > =C2=A0 =C2=A0 =C2=A0 =C2=A0 throws Exception > =C2=A0 =C2=A0 { > - =C2=A0 =C2=A0 =C2=A0 =C2=A0export( actual ).to( System.out ).usingGraph= MLFormat(); > + =C2=A0 =C2=A0 =C2=A0 =C2=A0export( actual ).usingGraphMLFormat().to( Sy= stem.out ); > =C2=A0 =C2=A0 } > > =C2=A0} > > Modified: commons/sandbox/graph/branches/exporters-with-mappers/src/test/= java/org/apache/commons/graph/export/VertexLabelMapper.java > URL: http://svn.apache.org/viewvc/commons/sandbox/graph/branches/exporter= s-with-mappers/src/test/java/org/apache/commons/graph/export/VertexLabelMap= per.java?rev=3D1302199&r1=3D1302198&r2=3D1302199&view=3Ddiff > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/VertexLabelMapper.java (original) > +++ commons/sandbox/graph/branches/exporters-with-mappers/src/test/java/o= rg/apache/commons/graph/export/VertexLabelMapper.java Sun Mar 18 19:12:20 2= 012 > @@ -26,7 +26,6 @@ public final class VertexLabelMapper > =C2=A0 =C2=A0 implements Mapper > =C2=A0{ > > - =C2=A0 =C2=A0@Override > =C2=A0 =C2=A0 public String map( BaseLabeledVertex input ) > =C2=A0 =C2=A0 { > =C2=A0 =C2=A0 =C2=A0 =C2=A0 return input.getLabel(); > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org