liveBook · Manning

Node

As explained in Data Analysis with LLMs

A node is an entity in a graph that can be connected to other nodes and associated with properties.

A node represents an entity in a graph. Nodes can connect to other nodes through edges and can carry properties, such as a station’s name or a person’s name. section 5.4.1

Nodes represent different kinds of things in example graphs:

  • In a subway network, nodes represent stations; edges represent direct connections, labeled by subway line. section 5.4.1
  • In a movie database, nodes represent people and movies. Labels identify node types, while properties store values such as names and titles. section 5.4.2
 #1
MATCH (p:Person {name: 'Tom Cruise'})-[:ACTED_IN]->(m:Movie)
RETURN m.title                                       #2

This Cypher pattern matches a Person node named Tom Cruise, follows an ACTED_IN edge to Movie nodes, and returns each movie’s title. section 5.4.3

How Data Analysis with LLMs covers it

How deep it goes
Defines nodes, illustrates labels and properties, and applies them in simple MATCH queries; defers a full Cypher introduction.
Examples
Illustrates subway stations, people, movies, and a Tom Cruise acting query.
What you can do after
Understand how node labels and properties participate in simple Cypher MATCH patterns and query results.
How it connects
Connects nodes to edges, properties, graph databases, and Cypher query patterns.

Also explained in

Compare how 19 books explain node →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Data Analysis with LLMs. The section links point to the parts of the book it draws on.