A graph neural network (GNN) is a neural architecture that learns from nodes, edges, node and edge attributes, and overall graph structure through iterative neighborhood message passing, where each individual node repeatedly updates its own learned representation by aggregating information received directly from its immediate graph neighbors. GNNs are specifically well-suited to modeling data that is naturally structured as a graph, molecules, electronic circuits, and social networks among common examples, where the actual specific relationships and connections between individual entities genuinely matter just as much as each individual entity's own standalone attributes.