A graph neural network learns low-dimensional representations from nodes, features, and their connections, then supports predictions over graph problems. section 11.7
A practical graph-learning pipeline proceeds as follows:
- Represent the problem with node features and an adjacency matrix. section 11.7
- Generate graph embeddings through GNN or GCN message passing. section 11.7
- Use multilayer perceptrons to predict probabilities for nodes or edges. section 11.7
- Search the probability-guided graph with beam search to obtain a feasible candidate. section 11.7
Solving a TSP instance
A pretrained model can process TSP data, select greedy decoding, run in evaluation mode, and use CUDA when available; Gurobi helps eliminate subtours. section 11.7
Follow the end-to-end pipeline from graph encoding through embedding, prediction, and graph search. section 11.7




