Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Give the minimum and the maximum number of edges in an undirected connected graph of n vertices?

Tags:

graph

tree

would minimum be (n-1) edges?

I am unsure about maximum

like image 266
user2675364 Avatar asked Nov 24 '14 12:11

user2675364


People also ask

What is the smallest number of edges that an undirected connected graph on n vertices?

The fewest edges a connected graph on n vertices has is n−1. No graph with n−2 edges is connected. Not all graphs with n−1 edges are connected. Not all graphs with n edges are connected.

What is the maximum number of edges in an undirected graph with n vertices?

The number of edges in complete graph with n node, kn is n(n−1)2.

What is the minimum and maximum number of edges in a simple graph of n vertices?

A graph with no loops and no parallel edges is called a simple graph. The maximum number of edges possible in a single graph with 'n' vertices is nC2 where nC2 = n(n – 1)/2. The number of simple graphs possible with 'n' vertices = 2nc2 = 2n(n-1)/2.

What is the maximum number of edges in an undirected graph with n vertices in which each vertex has degree at most K?

(n-k+1)(n-k)/2 It is because maximum number of edges with n vertices is n(n-1)/2.


1 Answers

Yes.. The minimum number of edges for undirected connected graph is (n-1) edges. To see this, since the graph is connected then there must be a unique path from every vertex to every other vertex and removing any edge will make the graph disconnected.

For the maximum number of edges (assuming simple graphs), every vertex is connected to all other vertices which gives arise for n(n-1)/2 edges (use handshaking lemma). Another way: look over K_n (the complete graph with n vertices) which has the maximum number of edges.

like image 127
Xline Avatar answered Nov 16 '22 05:11

Xline