Important Properties of a Graph
Let $G$ be a graph with $m$ edges in its edge set $E$ and $n$ vertices in its vertex set $V$:
$$ \sum_{v in V}deg(v) = 2m $$
If G is directed:
$$ \sum_{v in V}outdeg(v) = \sum_{v in V}indeg(v) = m $$
If G is a simple graph with $n$ vertices, the number of edges is $O(n^2)$.