You could use GraphMigrator from Blueprints:
https://github.com/tinkerpop/blueprints/blob/master/src/main/java/com/tinkerpop/blueprints/pgm/util/graphml/GraphMigrator.java

Check out *testMigratingTinkerGraphExample3()* in this test case for usage:
https://github.com/tinkerpop/blueprints/blob/master/src/test/java/com/tinkerpop/blueprints/pgm/util/graphml/GraphMLReaderTestSuite.java

Basically:
Neo4jGraph oldGraph = new Neo4jGraph(oldDirectory);
Neo4jGraph newGraph = new Neo4jGraph(newDirectory);
GraphMigrator.migrateGraph(oldGraph, newGraph);

On Thu, Mar 3, 2011 at 12:25 PM, Axel Morgner <[email protected]> wrote:

> +1
>
> On 03.03.2011 12:25, Peter Neubauer wrote:
> > Mmh,
> > maybe this could be in some Utilities class? Seems a good thing to be
> > able to clone a graph ...
>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to