• recategorized by
1,114 views
0 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.

1 Answer

1 1 vote

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)

Position:
Show:

Related questions

0 0 votes
1 1 answer
748
748 views
Durgesh Singh asked Apr 29, 2018
748 views
How can we distinguish b/w back edge, the forward edge and cross edge in BFS or DFS traversal in Graphs?
1 1 vote
1 1 answer
1.9k
1.9k views
Sandy Sharma asked Apr 24, 2018
1,869 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 0 votes
0 0 answers
471
471 views
iarnav asked Apr 5, 2018
471 views
I've read somewhere, but can't find any credible source or someone to attest it. So, please let me know, how this is True - Question - In terms of complexities in simple ...
3 3 votes
0 0 answers
2.0k
2.0k views
Hitoshi asked Oct 15, 2017
2,002 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...