Sarath, in order to distinguish between the linked files NEXT relationships different paths, you need to have some more context on the relationships I think. I tried putting a "parent folder" property on them, see http://gist.neo4j.org/?9270858
Alternatively, you could even use different relationship types like NEXT1, NEXT2, NEXT3, depending on the nature of your graph and queries. Structr is doing something similar when putting HTML page structures into the graph. Does that make sense? Feel free to fork the gist, adjust the model and add your queries. /peter G: neubauer.peter S: peter.neubauer P: +46 704 106975 L: http://www.linkedin.com/in/neubauer T: @peterneubauer Neo4j 2.0.0 - (graphs)-[:FOR]->(everyone)<http://blog.neo4j.org/2013/12/neo4j-20-ga-graphs-for-everyone.html> Kids LAN creative party in Malmö - Kidscraft ICE <http://kidscraft.se> On Wed, Feb 26, 2014 at 9:01 AM, Sarath Sreeprakash < [email protected]> wrote: > I am new to neo4j, I have the following situation![][1] > > > <https://lh6.googleusercontent.com/-LjSedeXiu6g/Uw2fHnoKEuI/AAAAAAAAAV4/7zqp8hPowGA/s1600/doubt.jpg> > > > As shown in the figure above I have an Node `Admin` and nodes `Folder1, > Folder2,Folder3`and other group of nodes like `FileA,FileB,FileC,FileD`. > > - The `Admin` node has an `:access` relationship with property `qty` > for the `Folder1,Folder2 and Folder3`. > > - Each Folder nodes have `:next` relationship with respective File > nodes as represented in the above figure. > > Question : > --------------- > How to write a Cypher query to return the **distinct** `FileA , FileB > ,FileC,FileD` nodes from these folder nodes having **high** `qty` value? > > I have tried,but I couldn't get it. > > Please help, Thanks in advance > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
