1. Introduction.- 2. Preparation.- 3. Basics of graph limit theory.- 4. Large deviation preliminaries.- 5. Large deviations for dense random graphs.- 6. Applications of dense graph large deviations.- 7. Exponential random graph models.- 8. Large deviations for sparse graphs.- Index.