recategorized by
472 views
0 votes
0 votes
If a graph with n vertices has more than $\left ( n-1 \right )\left ( n-2 \right ) / 2$ edges then it is connected.

I am a bit confused about this question, since I can always prove that for a graph to connected you need more than $\geq n-1$ edges.
recategorized by

1 Answer

1 votes
1 votes

Let us consider a 5 vertices graph,

use every edge for 4 vertices , we know number of edges possible for a 4 vertices regular graph is the complete graph k4,

we have  used up 6 edges, and to connect to the final vertex you need one more edge.

Thus for this graph to be connected you must use more than 6 edges {(5-1)(5-2)/2}

which on generalizing results to the formula in question.

*Equivalent statement would be , for n vertices consider edges more than required in k(n-1); which is C(n-1,2)

Related questions

0 votes
0 votes
1 answer
1
Durgesh Singh asked Apr 29, 2018
266 views
How can we distinguish b/w back edge, the forward edge and cross edge in BFS or DFS traversal in Graphs?
1 votes
1 votes
1 answer
2
Sandy Sharma asked Apr 24, 2018
790 views
Is this statement correct?? and why?.If there are negative weight cycles than dijkstra will surely fail but if there are negative weight edges(need not be cycle) then dij...
0 votes
0 votes
0 answers
3
3 votes
3 votes
0 answers
4
Hitoshi asked Oct 15, 2017
1,638 views
While going through dijkstra's algorithm, there is a term "decrease key". I am not getting the meaning when it says "we do decrease key operation". What exactly we do and...