retagged by
34,898 views
78 votes
78 votes

The number of distinct simple graphs with up to three nodes is

  1. $15$
  2. $10$
  3. $7$
  4. $9$
retagged by

12 Answers

12 votes
12 votes
The number of max edges a simple graph can have is $n\times (n-1)/2$.

So, for a graph with $3$ nodes the max number of edges is $3$.

Now there can be $0$ edges, $1$ edge, $2$ edges or $3$ edges in a $3$ node simple graph.

So the total number of unlabled simple graphs on 3 nodes will be  $4$.

Similarly for two node graph we have option of $0$ or $1$ edge.

So the total number of simple graphs upto three nodes are:

$$4 + 2 + 1 = 7$$
6 votes
6 votes

Number of graphs (labelled) possible on n vertices = $2^\frac{n(n-1)}{2}$

So, for upto 3 nodes = $1+2+8=11$

No option matches.

 

So, the question wants to know it for unlabelled. There's no formula for that, we have to do it manually.

So, by brute force: $1+2+4=7$

 

Option C

1 votes
1 votes
Minimum no of vertices required for a graph = 1

Number of distinct graphs with 1 node = 1

Number of distinct graphs with  2 nodes = 2  (one without edge and one with edge)

Number of distinct graphs with 3 nodes = 4  (Although total no of possible graphs for 3 nodes is  2 power (n(n-1)/2) = 8, but distinct are 4 as:

                                                                                1st being null graph in which there is no edge.

                                                                                2nd being graph in which there is 1 edge.

                                                                               3rd being graph in which there are 2 edges.

                                                                               4th being graph in which there are 3 edges.)

So total no of distinct graphs upto 3 nodes = 1 + 2 + 4 = 7.

But this is with the assumption that the nodes are unlabelled.

Had they been labelled, the answer would have been 1 + 2 + 8 =11 and this is not in the option and hence our assumption is correct.
0 votes
0 votes

ans should be 11:

here they said upto three three nodes means we have |V|=1, or |V|=2,  or |V|=3

here total possible graph are 11

Answer:

Related questions

39 votes
39 votes
8 answers
1
Kathleen asked Sep 15, 2014
18,743 views
The maximum number of edges in a $n$-node undirected graph without self loops is$n^2$$\frac{n(n-1)}{2}$$n-1$$\frac{(n+1)(n)}{2}$
19 votes
19 votes
3 answers
2
Kathleen asked Oct 4, 2014
8,035 views
The number of edges in a regular graph of degree $d$ and $n$ vertices is ____________
8 votes
8 votes
1 answer
3
go_editor asked Jun 13, 2016
4,012 views
Consider the graph shown in the figure below:Which of the following is a valid strong component?$a, c, d$$a, b, d$$b, c, d$$a, b, c$
26 votes
26 votes
5 answers
4
Kathleen asked Oct 4, 2014
10,125 views
The number of substrings (of all lengths inclusive) that can be formed from a character string of length $n$ is$n$$n^2$$\frac{n(n-1)}{2}$$\frac{n(n+1)}{2}$