Thanks for your reply. It resolved my problem.

I think it is a basic question. But I found very difficult to find solution
online. So can you please provide any consolidated user guide to use
Neo4j(other than doc/videos in neo4j sites)?

Thanks,
Karthik
On Wed, Feb 2, 2011 at 6:12 PM, Mattias Persson
<matt...@neotechnology.com>wrote:

> 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
>
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to