Network motifs are subgraph patterns that appear significantly more (or less) than expected in a random Erdős–Rényi graph with the same n and p. The Z-score = (observed − expected) / σ reveals over- or under-represented structures — key to understanding real-world network function.