0

How do I prove that the connected undirected graph having 10 nodes and 10 edges contains a cycle.

TechJ
  • 295
  • What do you mean by "the" connected undirected graph having $10$ vertices and $10$ edges? Do you have a specific graph in mind, or are you asking how to prove this for any connected undirected graph having $10$ vertices and $10$ edges? – Ben Sheller Oct 31 '15 at 17:02
  • for any undirected graph – TechJ Oct 31 '15 at 17:10

2 Answers2

3

Hint: Any tree with $n$ vertices can have atmost $n-1$ edges.

happymath
  • 6,297
0

Assume that it is not cyclic, so then it means it is a tree.

But for tree we have number of edges 1 less than number of vertices i.e. $n=n-1$

$n=10-1=9$ which contradicts the given statement.

Hence our assumption is wrong, so there exists a cycle.

TechJ
  • 295