You mean copy nodes from one database to another? You can bring up two
EmbeddedGraphDatabase instances, pointing to two different locations, and
start getting nodes/relationships from one and creating them (not just
adding) in the other.

    GraphDatabaseService gDB1 = new
EmbeddedGraphDatabase("/NeoDB/store/db");
    GraphDatabaseService gDB2 = new EmbeddedGraphDatabase("target/db");

    for ( Node sourceNode : gDB1.getAllNodes() )
    {
         // Insert the contents of that node in gDB2
    }

2011/2/2 karthik aithal <karthikait...@gmail.com>

> Hi,
>
>     I am biginner to Neo4j and eager to learn more about it. I am aware
> of creating new Graph database with 1k to 10k nodes and relationship and
> was
> successfully traverse to specific nodes. But currently I am facing
> difficult
> to get node from existing graph DB and traverse to specific node in that
> DB.
>
> For creating new Graph DB I am using:
>
> GraphDatabaseService gDB = new EmbeddedGraphDatabase("target/db");
>
> So, if I have 10k nodes(with relationship) in Path: "/NeoDB/store/db" then
> how can I retrive nodes from this DB?
>
> Thanks for your help in advance,
>
> Karthik
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to