Node classification assigns one of several labels to each graph node. An end-to-end graph neural network learns node embeddings and class predictions together rather than treating embeddings as fixed inputs. section 2.3.3
A practical implementation follows this pipeline:
- Prepare the graph for PyTorch Geometric, optionally initializing node features randomly or with Node2Vec embeddings. section 2.3.3
- Pass node features through graph convolutional layers, then apply log softmax to produce a class distribution for every node. section 2.3.3
Feature and depth comparison
On the books_gml three-label task, a four-layer GNN with Node2Vec features reaches 88.99% accuracy and an 89.29% F1 score, outperforming the randomized-feature variants.

