Prepare
Practice
Interview
Aptitude
Reasoning
English
GD
Placement papers
HR
Current affairs
Engineering
MCA
MBA
Online test
Login
Complete graph has n vertices then what will be the no of edges
Home
>>
Category
>>
Programming Language (MCQ) questions
>>
Data Structure
Q. If a complete graph has n vertices then what will be the no of edges?
- Published on 23 Jun 15
a.
n-1
b.
(n-1)/2
c.
(1/2) n (n-1)
d.
None of the above.
ANSWER: (1/2) n (n-1)
Related Content
Networking (
207
)
Database (
97
)
C programming (
58
)
Software Engineering (
28
)
SQL (
5
)
HTML (
74
)
Web Technologies (
11
)
Data Structure (
140
)
Operating System (
96
)
Java (
25
)
Oracle (
5
)
C++ (
50
)
Algorithms (
7
)
PL/SQL (
13
)
JavaScript (
7
)
XML (
0
)
CSS (
1
)
Discussion
Nihal
-Posted on 01 Apr 16
A complete graph is a graph in which each pair of graph vertices is connected by an edge. If a complete graph has 'n' vertices then the no. of edges will be
(1/2) n (n-1).
It is denoted by
Kn
.
Properties of complete graph:
It is a loop free and undirected graph.
Each vertex has degree N-1
The sum of all degrees is N (N-1)
Example:
Suppose the number of vertices in complete graph is 15 then the number of edges will be (1/2)15 * 14 = 105
➨
Post your comment / Share knowledge
Required!
Required!
Invalid Email Id!
Required!
Enter the code shown above:
Please enter the code shown above
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)
MCQs
English
Tutorials
Download
▲