liveBook · Manning

Graph neural network

A graph neural network is a neural-network model that learns representations or predictions from graph-structured data by combining information from connected entities.

How 5 Manning books explain it

Graph Neural Networks in Action

A graph neural network architecture specifies the layers, computations, and connectivity used by a graph neural network.

How it is used
Models relationship-centric data for node, edge, or graph predictions when connections contribute useful information.
How deep it goes
Builds from graph representation to message-passing layers and a coded two-layer GCN; defers detailed convolution treatment.
Examples
Uses a two-layer GCN embedding model, sparse user-item interactions, and atom-bond graphs for molecular prediction.
What you can do after
Build it from scratch as a basic two-layer GCN in PyTorch Geometric and evaluate whether graph relationships justify its use.

Read how Graph Neural Networks in Action explains graph neural network →

Financial AI in Practice

A neural network that learns from graph-structured data by aggregating information across connected nodes.

How it is used
Scores connected financial activity for fraud and supplies relationship-based signals for investment recommendations.
How deep it goes
Works through graph preparation, a two-layer PyTorch model, training, and ranked output, while explicitly stopping short of production-grade design.
Examples
Uses transactions linked by shared users or devices, a Normal/Fraud classifier, and a shared-holding recommendation scenario.
What you can do after
Build it from scratch as a simplified PyTorch transaction GNN and inspect its highest-ranked fraud probabilities.

Read how Financial AI in Practice explains graph neural network →

Knowledge Graphs and LLMs in Action

A graph neural network is a neural network architecture that learns representations by propagating information among nodes and edges of a graph.

How it is used
Deploys graph structure and node attributes to learn representations for classification, link prediction, and other graph-based machine-learning tasks.
How deep it goes
Explains message passing, trainable update rules, embeddings, and encoder–decoder workflows, without deriving advanced architectures.
Examples
Uses financial transaction graphs for AML classification and user–movie interaction graphs for recommendation link prediction.
What you can do after
Apply it via PyTorch Geometric to build and evaluate node-classification or link-prediction systems.

Read how Knowledge Graphs and LLMs in Action explains graph neural network →

Optimization Algorithms: AI techniques for design, planning, and control problems

A graph neural network is a neural network architecture that learns representations and predictions from graph-structured data.

How it is used
Applies graph representations and predictions to combinatorial optimization problems such as TSP, VRP, SAT, MaxCut, and MIS.
How deep it goes
Explains encoding, message passing, prediction, search, and learning objectives, while deferring training implementation details to substantial code and preprocessing.
Examples
Uses TSP, pretrained models, node and edge probabilities, Concorde solutions, beam search, and a Gurobi-assisted implementation.
What you can do after
Apply it via pretrained models to predict and search feasible TSP solutions.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains graph neural network →

Machine Learning Algorithms in Depth

A graph neural network is a neural-network architecture that computes representations by propagating information over graph-structured data.

How it is used
Uses graph-structured relationships and node features to classify documents in a citation network.
How deep it goes
Defines adjacency and feature matrices, distinguishes classification targets, and provides a GCN implementation listing.
Examples
Uses CORA documents, citation edges, word-indicator features, and a t-SNE view of a hidden representation.
What you can do after
Apply it via Spektral’s GCNConv with TensorFlow/Keras to classify nodes in a citation graph.

Read how Machine Learning Algorithms in Depth explains graph neural network →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.