What is a graph $G = (V, E)$, and what do its vertices and edges store?
A graph is a pair of a set $V$ of vertices (nodes) and a collection $E$ of edges, each edge a pair of vertices. Vertices and edges can both store an element: in a flight network a vertex stores an airport code and an edge the length of the route between two airports.
* Only the connections count: where the airports sit in the picture means nothing. *
A graph models relationships: which things are connected to which. The vertices are the things, the edges the connections between them. Everything else in a drawing, the positions of the circles and the lengths of the lines, is decoration; two drawings with the same vertices and edges are the same graph. A route's length is part of the graph only because the edge stores it as its element.
$E$ is called a collection rather than a set because it may contain the same pair more than once (parallel edges, such as two different routes between the same two airports). Throughout, $n$ is the number of vertices and $m$ the number of edges: the example has $n = 8$ and $m = 11$.
Go deeper:
Graph (discrete mathematics) โ the definitions, the main kinds of graph, and how they are drawn.