jadell / neo4jphp

PHP wrapper of the Neo4j REST interface
Other
532 stars 137 forks source link

An option to hold more then one graph on the server #130

Closed PavelPolyakov closed 10 years ago

PavelPolyakov commented 10 years ago

Hi,

Sorry for creating an issue, but I haven't found any other community where I can ask the question for now.

My question is the next - is there an analog of the "database" in the neo4j ? As I see in wiki, we can run the server and then connect there and start creating the nodes and connections inside them.

But, is there an option to run 2 different "sheets" (like A and B) on one server, so we can create completely different graphs there? For example I want to create the graph which consists from 10 nodes on sheet A and completely other graph, which consists from 20 nodes on sheet B. And I want to hold them on one neo4j server. Is that possible?

Regards,

jadell commented 10 years ago

This is not a feature of Neo4j. There is only one database per instance. You can store 2 separate graphs in the dame database, with different root nodes.

(A)-->(1)-->(2)
(A)-->(3)

(B)-->(4)
(B)-->(5)

In that example, A and B are separate graphs. If you construct your queries to always start at node A or B, you won't traverse into the other graph.

This is the type of question that belongs on StackOverflow or the Neo4j Google Group.