Approach to counting the number of sub-graphs of a given graph G = ( V , E )

Jeramiah Campos

Jeramiah Campos

Answered question

2022-06-14

Approach to counting the number of sub-graphs of a given graph G = ( V , E )
I have just currently started reading about Graph theory in computer science and while reading the concept of graphs I came across the concept of sub-graphs. As a sub-graph is essentially similar to a subset in set theory I became interested in the question
"How many sub-graphs exist for a given graph G = ( V , E )"
While trying to count the number of sub-graphs I got a little confused as to what should be a generic approach in order to try figure out the number of sub-graphs quickly as it is highly dependent on the edge set the given graph possesses and this question confirmed my intuition : How many subgraphs of this simple graph?. But even this question doesn't answer the generic question as to what should be the general approach to figure out the number of sub-graphs for a given graph quickly. It will be great if someone could throw some light on the approach and explain it like they were explaining it to a 5 year old.

Answer & Explanation

grcalia1

grcalia1

Beginner2022-06-15Added 23 answers

Explanation:
I can't explain this approach to a five-year-old child. But here are my considerations, which work for any graph, but perhaps not very effectively from the computer science point of view.
1. Any graph of order n has an empty subgraph and n single-vertex subgraphs.
2. More generally, there are ( n k ) possibilities to choose k vertices from n.
3. If a graph of order k has m edges, then it has 2 m different subgraphs of order k.
4. Applying considerations 3 and 4 for each k = 2 , , n we can compute the total number of subgraphs of a given graph.

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Discrete math

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?