in Graph Theory retagged by
34,692 views
76 votes
76 votes

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

  1. $15$
  2. $10$
  3. $7$
  4. $9$
in Graph Theory retagged by
34.7k views

4 Comments

They have played with words quite well up to should be in bold

0
0

@rupesh17 Your Generalized solution is not correct. For 4 unlabeled vertices we have 11 simple graphs (not 7). See below references.

https://mathworld.wolfram.com/SimpleGraph.html

https://garsia.math.yorku.ca/~zabrocki/math3260w03/nall.html

 

As per my current understanding no general solution for unlabeled vertices simple graph.If anyone knows please comment.

 

2
2
I guess instead of 15, it should be 16 in the series. Thank you for your answer..!
0
0

12 Answers

123 votes
123 votes
Best answer

Answer is (C)

edited by

26 Comments

best explanation
0
0
why have we considered unlabelled vertices?
22
22
I had the same doubt. If you try with labeled upto 3 nodes:-

1 node =1

2 node =2

3 node = 8

1+2+8=11

Which is not in option
13
13
What about null graph ? If 8 is in the option, I think that we have to go with 8.
3
3
its upto 3 nodes, why have we not considered null graph, null graph is also a simple graph?
0
0
do you know what is null graph?
0
0
Edge less graph are called Null graph.

But where it is mentioned that we have to take unlabelled graph.
0
0

Shubhanshu where it is mentioned we need to take labeled graph?

and Rajesh R if 8 was in option still 7 is the correct answer because a null graph(a graph without any vertices) is not considered a simple graph. 

2
2

@Mk Utkarsh 

 a null graph(a graph without any vertices) is not considered a simple graph. 

Can you provide a reference to this statement. 

1
1
edited by

I was wrong

http://oeis.org/A005470/list

here the list mentions graph with no vertex so yeah we can say that 8 is the answer.

3
3
Thanks :)
0
0

There is no standard definition of Null Graph. Null Graph may refer to a graph in which set of vertices and edges both are empty or it may also refer to a graph(also called an empty graph or edgeless graph) in which set of vertices is a non-empty set but set of edges is an empty set.

So, here for this question , answer can be (7) or (8) but mostly resources consider edgeless graphs as null graphs if $n$ $\geqslant$ $1$.

http://mathworld.wolfram.com/EmptyGraph.html

http://mathworld.wolfram.com/NullGraph.html

https://en.wikipedia.org/wiki/Null_graph

https://math.stackexchange.com/questions/1196921/is-there-any-difference-between-empty-graph-and-null-graph

 

 

 

8
8
@amar can we take disconnected graphs also??
0
0
best explaination bro..
0
0
Can we generalize it as $2^{n}-1$ or not ?
1
1
edited by

Why number of 1 node graph with 3 labeled vertices =1?

It should be 3, as each vertex is uniquely labeled.

similarly why 2 node graph with 3 labeled vertices =2

we have to choose 2 nodes from 3, so 3 ways

and then we can have 0 or 1 edge, so 2 possibility

hence total number of 2 node graph with 3 labeled vertices =3*2=6

0
0

 because when it is not mentioned to consider graph as labeled, by default we consider it as unlabeled. 

2
2
I’m asking that if it was mentioned that graph is labeled then what will be the ans.
0
0
what to write if 7 and 8 both are in the options?
0
0
no of simple graph with n nodes = ${2}^{\binom{n}{2}}$.
0
0

@Deepak Poonia Sir I why null graph is not considered for answer of this question and it was not mentioned that graph is labelled or unlabelled.

0
0
Null graph(or Empty graph or Edgeless graph) is a graph with At Least One Vertex & No Edge.

Every graph must have At Least 1 Vertex. MOST of the authors don’t consider graphs with No vertex. MOST authors define graph to have at least one vertex.

In this question, if you assume that Vertices are labeled then answer will be $ 1 + 2 + 8 = 11 ,$ which is Not in the options, So, we answer according to Unlabeled.
1
1

@Deepak Poonia Sir 

Source wikipedia:-

In the mathematical field of graph theory, the term "null graph" may refer either to the order-zero graph, or alternatively, to any edgeless graph (the latter is sometimes called an "empty graph").

0
0

@abir_banerjee 

Also from Wikipedia:

"Some authors exclude K0 from consideration as a graph (either by definition, or more simply as a matter of convenience). Whether including K0 as a valid graph is useful depends on context."

Same thing I told in previous message. 

Half-reading is misleading & dangerous. 

IIT, IISc, NPTEL professors consider graphs to have at least one vertex. You can follow that. 

4
4

This is a screenshot from the very famous graph theory book by Reinhard Diestel, often called as "Diestel's graph theory book" which is considered as a standard textbook and followed by many people all over the world.
Now,  we can see vertex set can be empty and according to this 8 should be the correct answer provided graph is unlabeled. So,”theoretically” both 7 and 8 are the "possible" answers for an unlabeled graph. It should not be like that: 7 is correct and 8 is not correct though it is another case that $8$ is not given as the option.

To avoid ambiguity in the questions, it would be very helpful if more details would be added in the questions. It might create long questions but chances of ambiguity will be less.

Graph Theory is considered as a young subject and so, terms should be properly defined in the question. For example, a complete graph is defined as a graph whose vertices are pairwise adjacent, while a clique is a set of pairwise adjacent vertices in a graph. Many authors use the terms interchangeably. And, there are other examples too. So, to avoid ambiguity, it would be much helpful if things are defined properly and as much as details should be added in the question.  

3
3
edited by

@ankitgupta.1729

That’s well written.

It depends on the author whether they allow empty vertex set or not in the graph definition. Particularly, in IISc CSA Graph Theory course also, Diestel is followed, But Prof doesn’t allow empty vertex set in the definition of Graph.

Conclusion: 7, 8 both are correct answers, But since 8 is Not given in the options, so, 7 is unambiguously correct answer.

4
4
52 votes
52 votes
Answer: C

The number of max edges a simple graph can have is $\frac{n×(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 unlabeled simple graphs on $3$ nodes will be  $4.$
Similarly for two node graph we have option of $0$ or $1$ edge and for one node graph we have option of $0$ edge.
So the total number of simple graphs upto three nodes $=4+2+1=7.$

4 Comments

can i say it is $2^n - 1$?
0
0

Sourabh Kumar according to this http://oeis.org/A005470/list 8 is the answer

0
0
No you cannot Generalize 2^n−1.

As Up to 4 nodes Answer will be ,

Up to 3 nodes= 8 + for 4 nodes= 11,

So 8+11=19.
0
0
37 votes
37 votes
With n number of nodes, max edges are possible $\frac{n(n-1)}{2}$ in a simple graph. each edge has two choices, it'll be taken in a graph or it won't be taken. so total no of graphs are possible
$2^{\frac{n(n-1)}{2}}$.
in the question, it is asked upto three nodes:
with 1 node total graph possible = 1
with two nodes graph possible = 2
with three nodes, possible graphs= $2^{\frac{3(3-1)}{2}}  = 2^3 = 8$   but there are 3 non distinct graphs which are isomorphic to each other, so with n=3 nodes total graphs possible = 8 but total unique graph possible = 4

upto 3 nodes $1 + 2 +4 = 7 $hence answer is (C)
edited by

3 Comments

in 7,you have not counted null graph? why?

total unique graph means?
0
0

" but there are 3 non distinct graphs which are isomorphic to each other, so with n=3 nodes total graphs possible = 8 but total unique graph possible = 4"

did not understand this part

 

0
0
Good explanation, here if we take labeled nodes then answer is 11 which is not in the option so go with the 7 because if we take unlabeled nodes then 7 simple graphs will be possible.
0
0
14 votes
14 votes
A graph is an ordered pair (V,E). So, given a set V, graph will be different if E is different. Lets see how many different E we can get when |V| = 3.

For |V| = 3, we can have |E| = 0, 1, 2 or 3. So, 4 possible graphs.

Now, the question asks for |V| upto 3. So, we have to consider |V| = 2 and |V| = 1 also. When |V| = 2, we can have |E| = 1 or 0, so 2 possibilities. For |V| = 1, |E| can be only 0 and hence only one possibility.  So, total number of possibilities is $$4 + 2 + 1  = 7$$.
edited by

2 Comments

this won't work, having an edge on one node means there is some other node with one edge also.
0
0
Yes. That was a bad mistake. I have corrected it now.
0
0
Answer:
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true