liveBook · Manning

Source point

As explained in Graph Algorithms for Data Science

A source node is the starting node of a directed relationship in Neo4j Graph Data Science terminology.

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

How Graph Algorithms for Data Science covers it

How deep it goes
Defines relationship direction and applies it in projection syntax, without detailing deeper graph internals.
Examples
Demonstrates retweet users as sources and retweeted users as targets, plus User nodes connected by FOLLOWS relationships.
What you can do after
Apply it via gds.graph.project by supplying source and target nodes for directed graph relationships.
How it connects
Connects source node to target node, directed relationships, native projection, Cypher projection, and weighted networks.

Also explained in

Compare how 3 books explain source point →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Algorithms for Data Science. The section links point to the parts of the book it draws on.