[Neo4j] Nodes connected to the root node.

2014-01-25 Thread Aran Mulholland
Should all subgraphs of the graph be connected to the root node? Best practice (from my reading) in earlier versions seemed to suggest this, now we have labels and indexing this may no longer be the case. Is it? -- You received this message because you are subscribed to the Google Groups "Neo4j

Re: [Neo4j] Transactional REST API

2014-01-25 Thread Michael Hunger
Thanks a lot for your engagement! What language / environment are you developing the driver for? This is most efficient: - Multiple queries directly to /transaction/commit (creating a new transaction each one?) It depends on the usage though, if decisions for the following queries are made based

Re: [Neo4j] shortest path doubt

2014-01-25 Thread Michael Hunger
Not with cypher currently. Then check out this: http://docs.neo4j.org/chunked/stable/rest-api-graph-algos.html#rest-api-execute-a-dijkstra-algorithm-and-get-a-single-path With a weight property as cost property. If you're running in the JVM you can also use GraphAlgoFactory directly. Cheers Mich

Re: [Neo4j] help with evaluator

2014-01-25 Thread Michael Hunger
Good point Max, you're right the OrderedType expander doesn't really do that. Did you have a blog posted about that? Michael On Sat, Jan 25, 2014 at 11:55 PM, Max De Marzi Jr. wrote: > > Use your own Array Expander: > >RelationshipType[][] orderedRelTypes = { >

[Neo4j] shortest path doubt

2014-01-25 Thread Shantaram Waingankar
I need to find the shortest path between two nodes, but instead of shortest path in terms of no of hops, i want it in terms of sum of a property on the relationship. Sample assume i have cities A,B,C if a route exists between 2 cities, a relationship is created and the distance between the two is

[Neo4j] Transactional REST API

2014-01-25 Thread Gorka Lertxundi
I started developing a neo4j client and when I reach to the transactional endpoint there's something i'm not sure about: Which is the best option regarding to multiple 'MATCH' statements? (no updates, no creates): - Multiple queries directly to /transaction/commit (creating a new transaction

Re: [Neo4j] help with evaluator

2014-01-25 Thread Max De Marzi Jr.
Use your own Array Expander: RelationshipType[][] orderedRelTypes = { { Relations.FRIENDS, Relations.ENEMIES }, { Relations.LIKES }, { Relations.HATES} }; Direction[] directions = {Direction.OUTGOING,

Re: [Neo4j] help with evaluator

2014-01-25 Thread Javad Karabi
but now, i am seeing that it does traverse ()-[:preferred_store]->()<-[:preferred_store]-() but, i am seeing that it _again_ traverses out via preferred_store: (0)--[preferred_store,10]-->(11)<--[preferred_store,3517594]--(90746)--[preferred_store,3517600]-->(19758) even though my expander looks

Re: [Neo4j] help with evaluator

2014-01-25 Thread Javad Karabi
scratch that, i forgot to import it... On Sat, Jan 25, 2014 at 12:13 PM, Javad Karabi wrote: > it does not seem to work for me > > error: cannot find symbol > asList( > ^ > symbol: method asList(Pair) > > > > On Saturday, January 25, 2014 6:59:20 AM UTC-6, Stefan Armbruster w

Re: [Neo4j] help with evaluator

2014-01-25 Thread Javad Karabi
it does not seem to work for me error: cannot find symbol asList( ^ symbol: method asList(Pair) On Saturday, January 25, 2014 6:59:20 AM UTC-6, Stefan Armbruster wrote: > > Arrays.asList from the JDK, > http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T

Re: [Neo4j] [Testing / Java] Simpler test assertions with AssertJ-Neo4j

2014-01-25 Thread Peter Neubauer
Very nice, it's already underway it seems! /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)

Re: [Neo4j] Node properties created in a TransactionEventHandler are not returned from Cypher query

2014-01-25 Thread brian
This is clear, but how do I solve this problem? Creating properties in a TransactionEventHandler like this seems like a fairly common use-case (especially for putting GUIDs on Nodes). I really don't want to have to do an extra GET after every CREATE. It still seems that the code that turns t

Re: [Neo4j] Changing relationship type in Neo4j

2014-01-25 Thread Dmitry Paranyushkin
Hey Nigel, How would adding a feature to change the relationship affect its ability to perform matching? I mean I understand that it would be not the most trivial function to have, but in the end I don't see how it's different to change the relationships as opposed to deleting them and making

Re: [Neo4j] help with evaluator

2014-01-25 Thread Stefan Armbruster
Arrays.asList from the JDK, http://docs.oracle.com/javase/7/docs/api/java/util/Arrays.html#asList(T...) 2014/1/25 Javad Karabi : > the asList can not seem to be found... where is that provided? > > > On Friday, January 24, 2014 7:21:37 PM UTC-6, Michael Hunger wrote: >> >> I think you have to crea

Re: [Neo4j] Node properties created in a TransactionEventHandler are not returned from Cypher query

2014-01-25 Thread Andres Taylor
I was unclear : On Sat, Jan 25, 2014 at 10:21 AM, Andres Taylor < andres.tay...@neotechnology.com> wrote: > The transaction isn't closed until after the Cypher statement is closed, > and so Cypher can't see what a transaction event handler does inside the > transaction. > "event handler does at

Re: [Neo4j] Node properties created in a TransactionEventHandler are not returned from Cypher query

2014-01-25 Thread Andres Taylor
Hi Brian, Thinking about this, I reach the conclusion that the Cypher statement is running inside a transaction. The transaction isn't closed until after the Cypher statement is closed, and so Cypher can't see what a transaction event handler does inside the transaction. The reason it worked befo