Number ways of deleting a Graph Nodes

Правка en1, от coderbond007, 2017-12-28 11:00:32

From few days, I have been thinking about a problem. But I can't figure out the solution.

Suppose you have an undirected graph having N nodes and M edges given. Given graph is initially a single connected component. Now the problem is, we have to delete a node of the graph such that remaining graph should be a single connected component. And this process should be repeated until the graph vanishes.

Now, we need to find the number of ways of doing it. Suppose graph is N = 6 and M = 7 as shown here

 Graph

One way to delete the above graph is 2 — 3 — 5 — 6 — 1 — 4 (order of deleting the nodes).

Second way to delete the above graph is 2 — 3 — 5 — 6 — 4 — 1 (order of deleting the nodes).

Another way to delete the above graph is 2 — 5 — 6 — 3 — 1 — 4 (order of deleting the nodes).

Incorrect way of deleting the graph is 1 — 2 — 3 — 4 — 5 — 6 (Graph got disconnected after deleting node 1)

Can anybody help me with this question solution? Thanking all in advance.

Теги #graph, combinatorics, connected component

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский coderbond007 2017-12-28 11:00:32 1245 Initial revision (published)