Re: [Neo4j] Finding Paths Below a Given Length, but Excluding Those with an Nodes with a Specific Property set to a Specific Value

2014-11-23 Thread Michael Hunger
Sure it is simple in the Java API as you have full control, via PathExpanders and Evaluators, see here: http://neo4j.com/docs/stable/tutorials-java-embedded-graph-algo.html http://neo4j.com/docs/stable/tutorials-java-embedded-traversal.html#examples-uniqueness-of-paths-in-traversals Michael On S

Re: [Neo4j] Finding Paths Below a Given Length, but Excluding Those with an Nodes with a Specific Property set to a Specific Value

2014-11-23 Thread Milton Yutaka Nishiyama Junior
Hi Michael and Gabriel, Is it possible to make such similar queries using Java API ? or the graphAlgorithms ?, in the last case I understood that you can only use the parameters: node and distance. I would like to find all paths starting in one node, and exclude all paths that have a node with t

Re: [Neo4j] Finding Paths Below a Given Length, but Excluding Those with an Nodes with a Specific Property set to a Specific Value

2014-11-18 Thread Michael Hunger
try this MATCH (topic:attribute) WHERE id(topic) IN [37, 38] > MATCH p = (topic)-[rel: describedBy*0..4]-(node: attribute where none(n IN nodes(p)[..-1] where n.key = "enrichment" OR n.key = > "classification") RETURN p; The problem is I want to remove paths where any of the nodes in the path

[Neo4j] Finding Paths Below a Given Length, but Excluding Those with an Nodes with a Specific Property set to a Specific Value

2014-11-18 Thread Gabriel Bassett
I am having trouble creating an appropriate Cypher query. I would like to return the sub-graph of all edges & nodes within a certain distance of a topic node. This could easily be done with something like: > > START (topic: attribute)-[rel: describedBy*0..4]-(node: attribute WHERE id(topic) IN