Can anybody help me prove this inequality, please? I am not used to proving mathematical statements, so tips and hints are appreciated.
Show that every simple graph $G(V, E)$ satisfies the following inequality $$m\geq n-k$$ where $n = |V|$, $m = |E|$ and $k = \omega(G)$ (that is the number of connected components).
Each component is connected so suppose it has $n_i$ vertices, then it should have at least $n_i-1$ edges (think about a minimal connected acyclic simple graph: it is a tree). Thus the number of edges added over all the components is at least $\sum_{i=1}^k(n_i-1)$. So
$$m \geq \sum_{i=1}^k(n_i-1) =\sum_{i=1}^kn_i -k=n-k,$$ where $n$ is the total number of vertices in the graph.