Good point. I'd believe that thinking of a single node as a degenerated path
wouldn't be that wrong either. However, even returning just the callee
(which is what I wanted anyways) brings no relief, with the relationship
direction having no influence:


08:42:33,150 GraphQuery.java 81 INFO   - START
callee=node:node_auto_index('type:*Service') MATCH
p=(caller)-[r?:CALLS]->(callee) WHERE r IS NULL RETURN callee

Exception in thread "main" java.lang.AssertionError: assertion failed
        at scala.Predef$.assert(Predef.scala:89)
        at org.neo4j.cypher.PathImpl.<init>(PathImpl.scala:34)
        at
org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:50)
        at
org.neo4j.cypher.pipes.NamedPathPipe$$anonfun$foreach$1.apply(NamedPathPipe.scala:39)
        at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
        at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(MatchPipe.scala:37)
        at
scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
        at scala.collection.immutable.List.foreach(List.scala:45)
        at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:37)
        at
org.neo4j.cypher.pipes.MatchPipe$$anonfun$foreach$1.apply(MatchPipe.scala:36)
        at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:36)
        at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1$$anonfun$apply$1.apply(StartPipe.scala:35)
        at scala.collection.Iterator$class.foreach(Iterator.scala:652)
        at
scala.collection.JavaConversions$JIteratorWrapper.foreach(JavaConversions.scala:573)
        at scala.collection.IterableLike$class.foreach(IterableLike.scala:73)
        at
scala.collection.JavaConversions$JIterableWrapper.foreach(JavaConversions.scala:587)
        at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:35)
        at
org.neo4j.cypher.pipes.StartPipe$$anonfun$foreach$1.apply(StartPipe.scala:34)
        at org.neo4j.cypher.pipes.ParameterPipe.foreach(ParameterPipe.scala:27)
        at org.neo4j.cypher.pipes.StartPipe.foreach(StartPipe.scala:34)
        at org.neo4j.cypher.pipes.MatchPipe.foreach(MatchPipe.scala:36)
        at org.neo4j.cypher.pipes.NamedPathPipe.foreach(NamedPathPipe.scala:39)
        at 
scala.collection.TraversableLike$class.filter(TraversableLike.scala:212)
        at org.neo4j.cypher.pipes.Pipe.filter(Pipe.scala:31)
        at org.neo4j.cypher.pipes.FilterPipe.foreach(FilterPipe.scala:30)
        at org.neo4j.cypher.pipes.TransformPipe.foreach(TransformPipe.scala:38)
        at
org.neo4j.cypher.pipes.ColumnFilterPipe.foreach(ColumnFilterPipe.scala:35)
        at 
scala.collection.generic.Growable$class.$plus$plus$eq(Growable.scala:48)
        at 
scala.collection.mutable.ListBuffer.$plus$plus$eq(ListBuffer.scala:128)
        at 
scala.collection.TraversableOnce$class.toList(TraversableOnce.scala:242)
        at org.neo4j.cypher.pipes.Pipe.toList(Pipe.scala:31)
        at
org.neo4j.cypher.ExecutionResult$class.dumpToString(ExecutionResult.scala:69)
        at
org.neo4j.cypher.pipes.ColumnFilterPipe.dumpToString(ColumnFilterPipe.scala:25)
        at sandbox.GraphQuery.doQuery(GraphQuery.java:86)
        at sandbox.GraphQuery.run(GraphQuery.java:74)
        at sandbox.GraphQuery.main(GraphQuery.java:30)


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Cypher-question-tp3479960p3482144.html
Sent from the Neo4j Community Discussions mailing list archive at Nabble.com.
_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to