cancel
Showing results for 
Search instead for 
Did you mean: 

Graph Projection and Virtual Relationships

emack
Node

Hello I would like to run PageRank on a graph with a virtual relationship I have created. Could anybody help me with the syntax? The virtual relationship "SEEN_BY" is created as follows

MATCH (:Sender)-[:SENT]->(message:Message) 
MATCH (message)-[:MENTIONS]->(t:Topic)
MATCH (message)-[:SENT_TO]->(r:Room)
MATCH (r)<-[p:PARTICIPATES_IN]-(c:Receiver)
CALL apoc.create.vRelationship(t,'SEEN_BY', {volume: p.room_volume_2weeks}, c) YIELD rel
RETURN t, rel, c;
 
I think I need to (1) create a projection including 'SEEN_BY' and then (2) run PageRank with volume as the weight
0 REPLIES 0