liveBook · Manning

Database table

As explained in Graph Neural Networks in Action

Information describing how entities are connected or related to one another.

Relationship information describes how entities connect. A graph makes it usable: nodes represent entities, and edges represent their relationships. This differs from an ordinary database table or spreadsheet, whose rows and columns do not by themselves express a graph of connections. section 1.2.1 section 1.0

An adjacency matrix records those connections in a table: a value of 1 marks a link, while 0 marks its absence. For an undirected graph, the matrix is symmetric because a connection appears in both directions. A larger value can represent a more heavily weighted relationship. section 1.2.1

Table 1.1 The adjacency matrix for the simple graph in figure 1.1
A
B
C
D
E
A
0
1
0
0
1
B
1
0
1
1
1
C
0
1
0
1
0
D
0
1
1
0
1
E
1
1
0
1
0

The matrix shows which of five nodes connect. Compare entries on opposite sides of the diagonal to see the symmetry of an undirected graph. section 1.2.1

When connections matter to a prediction, a graph neural network can use message passing to turn node and edge features into embeddings. For example, a mechanical graph can represent connected body parts or forces between objects to help predict future states. This approach is less suitable when entries stand alone and relationships add little information; model choice should also account for training speed and computational resources. section 1.2.4 section 1.3.3 section 1.6 section 4.4.3

How Graph Neural Networks in Action covers it

How deep it goes
Works through nodes, edges, binary adjacency matrices, symmetry, and weighted connections, then sketches how GNNs use graph features.
Examples
Uses a five-node adjacency matrix and mechanical graphs of connected body parts or interacting objects.
What it assumes
Introduces nodes, edges, and adjacency matrices through simple connections without requiring prior graph terminology.
What you can do after
Evaluate/understand when relationships warrant a graph neural network rather than treating data as standalone entries.
How it connects
Links relational data to graphs, adjacency matrices, permutation invariance, message passing, and graph neural networks.

Also explained in

Compare how 12 books explain database table →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Graph Neural Networks in Action. The section links point to the parts of the book it draws on.