I'm getting an error message when running the query below:

MATCH p = allshortestPaths( (start:Class_Drone)-
[:tcpclient|:tcpservice|:hosting|:baseip|:nicowner|:monitoring|:wiredto-
|:ipowner*]-(m) )        WHERE m.nodetype IN ['IPaddrNode', 'SystemNode',
        'MonitorAction', 'ProcessNode', 'IPtcpportNode', 'Drone',
        'NICNode']        UNWIND nodes(p) AS n
        UNWIND rels(p) AS r
        RETURN [x in COLLECT(DISTINCT n) WHERE x.nodetype in
        ['IPaddrNode', 'SystemNode', 'MonitorAction', 'ProcessNode',
        'IPtcpportNode', 'Drone', 'NICNode']] AS nodes,        COLLECT(DISTINCT 
r) AS relationships

I have this statement in my neo4j config file:

cypher.forbid_shortestpath_common_node=false

And I get this message:
The shortest path algorithm does not work when the start and end nodes
are the same. This can happen if youperform a shortestPath search after a 
cartesian product that might have
the same start and end nodes for someof the rows passed to shortestPath. If you 
would rather not experience
this exception, and can accept thepossibility of missing results for those 
rows, disable this in the Neo4j
configuration by setting*`cypher.forbid_shortestpath_common_node` to fals**e*. 
If you cannot
accept missing results, and really want theshortestPath between two common 
nodes, then re-write the query using a
standard Cypher variable length patternexpression followed by ordering by path 
length and limiting to
one result.
I did this, but still get that message...

FWIW, this query used to work in earlier (3.0.x) versions of Neo4j. The
intent of the query is to return the selected portions of the graph  as
a subgraph. This particular one returns basically the entire graph, but
other variations are more selective. They all get the same message...

--
  Alan Robertson
  [email protected]

-- 
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/d/optout.

Reply via email to