A source node is the starting node of a directed relationship; the relationship ends at a target node. In Neo4j Graph Data Science, source and target nodes identify relationship direction during graph projection. section 5.2.1
Retweet amplification network
A retweet pattern treats the user who retweeted as the source and the user who was retweeted as the target. Counting retweets between each pair creates relationship weights for a directed, weighted in-memory graph. section 6.1.1
Listing 6.2 Cypher projection syntax
MATCH (sourceNode)-[relationship]->(targetNode) #1
RETURN gds.graph.project(
'graph', #2
sourceNode, #3
targetNode, #4
{dataConfig}, #5
{configuration} #6
) YIELD
graphName,
nodeCount,
relationshipCount
The syntax places sourceNode before the relationship and targetNode after it, then passes both nodes to gds.graph.project. section 6.1.1


