On Monday, May 15, 2017 at 8:23:12 AM UTC-7, Nubia L. wrote:
>
> My task is to return the users in the graph database that post chats that 
> mention other users
>
> My graph database was setup using the following listing of commands:
> Loaded from file 1
> MERGE (c:TeamChatSession {id: toInt(row[1])})
> MERGE (i:ChatItem {id: toInt(row[2])})
> MERGE (u)-[:CreateChat{timeStamp: row[3]}]->(c)
> MERGE (i)-[:PartOf{timeStamp: row[3]}]->(c)
>
> Loaded from file 2
> MERGE (i:ChatItem {id: toInt(row[0])})
> MERGE (u:User {id: toInt(row[1])}) 
> MERGE (i)-[:Mentioned{timeStamp: row[2]}]->(u)
>
> Note that not all chat items mention users, so the path terminates for a 
> majority of the database. 
>
> I have gotten this partial command to run effectively:
> match (a:ChatItem)-[:PartOf*]->(s)<-[:CreateChat*]-(u:User) 
>
> The problem come in when I attempt to construct the full path from u1 to u2
> match p = 
> (u1:User)-[:CreateChat]->(c:TeamChatSession)<-[:PartOf]-(i:ChatItem)-[r:Mentioned]->(u2:User)
> return p
>
> When I enter this query, the system just hangs. 
>

-- 
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