18 18 votes For which of the following does there exist a simple undirected graph $\text{G = (V, E)}$ satisfying the specified conditions? A tree with $9$ vertices and the sum of the degrees of all the vertices is $18.$ A graph with $5$ components, $12$ vertices and $7$ edges. A graph with $5$ components, $30$ vertices and $24$ edges. A graph with $9$ vertices, $9$ edges, and no cycles. Graph Theory goclasses_cs_mockgate_4 goclasses graph-theory degree-of-graph multiple-selects two-marks + – GO Classes 2.4k views answer comment Share Follow Print 0 reply Please log in or register to add a comment.
14 14 votes A: Not Possible A tree with $n$ vertices has $n-1$ edges, hence, the sum of the degrees of all the vertices is $2(n-1).$ https://youtu.be/JFoMdTRNr3w?t=751 B: Possible Make a forest with $5$ components (Any forest will work) C: Not possible The minimum number of edges in a simple graph with $n$ vertices and $k$ connected components is $n-k.$ https://youtu.be/JFoMdTRNr3w?t=3842 D: Not possible https://youtu.be/JFoMdTRNr3w?t=875 The maximum number of edges in a simple graph with $n$ vertices and $k$ connected components is $n-1.$ https://youtu.be/JFoMdTRNr3w?t=310 GO Classes answered Jan 19, 2023 • edited Jan 19, 2023 by Lakshman Bhaiya GO Classes comment Share Follow See all 4 Comments 4 4 Comments reply vinayedula commented Jan 21, 2024 reply Follow flag A simple graph with n vertices and k components can have atmost ( n-k)(n-k+1)/2 edges. 2 2 replyShare Franz Kafka commented Dec 2, 2024 reply Follow flag So, is it $(n-1)$ or $(n-k)(n-k+1)/2$ ? 1 1 replyShare ASUR commented Dec 10, 2025 reply Follow flag @pranavbhosle_ A simple graph with k component range min to max is (n-k) <=e <= (n-k)(n-k+1)/2 4 4 replyShare Subh23 commented Jan 7 reply Follow flag D is for trees' that is a type of forest graph 0 0 replyShare Please log in or register to add a comment.
6 6 votes Thanks to @Deepak Poonia sirANSWER = B tarunmundriya answered Dec 6, 2025 • edited Dec 13, 2025 by tarunmundriya tarunmundriya comment Share Follow See 1 comment 1 1 comment reply Vivek2235 commented Dec 13, 2025 reply Follow flag Thanks man!!! 1 1 replyShare Please log in or register to add a comment.
5 5 votes You can verify all the options using this theorem Theorem: A simple graph with n vertices and k components can have n-k <= no.of edges <= ( n-k)(n-k+1)/2 vinayedula answered Jan 23, 2024 vinayedula comment Share Follow See all 2 Comments 2 2 Comments reply kritika madaan commented Nov 25, 2024 reply Follow flag @vinayedula,does this formula works on K=1 ,when no of components is equal to 1.it is not working on option d,where k=1.for option d,According to this formula,minimum edges are 8& maximum edges are 36 0 0 replyShare Arghya Jana commented Dec 7, 2024 reply Follow flag Option D is asking about one simple graph only(one component) as they did not mentioned number of components explicitly. So with 9 vertices maximum number of edges will be there when the graph is complete graph(number of edges 36,), but obviously it has cycles. And for maximum number of edges without any cycle, the graph has to be a tree. So n-1=9-1=8 edges.( Sorry for my bad English..) 2 2 replyShare Please log in or register to add a comment.