A graph convolutional network (GCN) learns representations from node features and the edges connecting nodes. Rather than describing each node in isolation, it uses information from local neighborhoods. This makes GCNs an inductive graph-embedding method: a learned function can produce representations for nodes that were not present during training. section 11.3.1
Figure 11.6 Message passing and updating in GCN
The message-passing diagram shows the central intuition: connected nodes contribute information as node representations are updated. section 11.3.1
Node representations with PyTorch Geometric
A Cora example loads node features and edges, then passes them through two GCNConv layers. ReLU and dropout separate the layers; the second layer produces outputs sized to the dataset’s classes. Training uses the labeled nodes selected by a training mask. The example connects neighborhood aggregation to a practical node-learning task without requiring a hand-built convolution layer. section 11.3.1
For the traveling salesman problem, a GCN can serve as the representation-learning stage of a larger pipeline. Node features and an adjacency matrix define the graph; message passing creates a low-dimensional embedding; a multilayer perceptron predicts which nodes or edges belong to a solution. Graph search then uses those probabilities to seek a feasible tour. The predictions do not, by themselves, guarantee one. section 11.7
Supervised training can compare predictions with optimal tours supplied by a solver such as Concorde. Training a TSP model from scratch requires substantial preprocessing and code, so the practical TSP demonstration loads a pretrained model. Treat that demonstration as an example of the wider graph-learning pipeline, not as evidence that its particular pretrained model is a GCN. section 11.7



