How do I prove that the connected undirected graph having 10 nodes and 10 edges contains a cycle.
Asked
Active
Viewed 264 times
0
-
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 Answers
3
Hint: Any tree with $n$ vertices can have atmost $n-1$ edges.
happymath
- 6,297
-
-
-
Thanks for your reply, I have framed the answer using hint provided by you. – TechJ Oct 31 '15 at 16:51
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