A complete graph of n nodes will have _______ number of spanning trees. 

This question was previously asked in
NIELIT Scientific Assistant IT 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. nn−2
  2. 1
  3. 0
  4. n/2

Answer (Detailed Solution Below)

Option 1 : nn−2
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.7 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

The correct answer is option 1: nn−2

Key Points

  • The number of spanning trees in a **complete undirected graph** with n nodes is given by **Cayley’s formula**:
  • This applies specifically to **complete graphs**, where every pair of distinct vertices is connected by a unique edge.

Examples:

  • For n = 3 → spanning trees
  • For n = 4 → spanning trees

Additional Information

  • Option 2 (1): Only true for trees with exactly n − 1 edges, not for complete graphs.
  • Option 3 (0): Invalid; a complete graph always has spanning trees if n ≥ 2.
  • Option 4 (n/2): Not mathematically correct or relevant to spanning trees.

Hence, the correct answer is: option 1: nn−2

Latest NIELIT Scientific Assistant Updates

Last updated on Jun 12, 2025

-> NIELIT Scientific Assistant city intimation slip 2025 has been released at the official website.

-> NIELIT Scientific Assistant exam 2025 is scheduled to be conducted on June 28. 

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

More Spanning Tree Questions

More Graphs/Spanning Tree and Shortest Paths Questions

Get Free Access Now
Hot Links: teen patti glory teen patti online teen patti live teen patti boss teen patti master old version