in Algorithms edited by
11,734 views
55 votes
55 votes

Let $G_1=(V,E_1)$ and $G_2 =(V,E_2)$ be connected graphs on the same vertex set $V$ with more than two vertices. If $G_1 \cap G_2= (V,E_1\cap E_2)$  is not a connected graph, then the graph $G_1\cup G_2=(V,E_1\cup E_2)$

  1. cannot have a cut vertex
  2. must have a cycle
  3. must have a cut-edge (bridge)
  4. has chromatic number strictly greater than those of $G_1$ and $G_2$
in Algorithms edited by
11.7k views

4 Comments

G1∩G2=(V,E1∩E2)  is not a connected graph,

wht does it mean

0
0
Why we are not taking directed graph here? Will there also be a cycle then?
0
0

Proof G1 U G2 has cycle


credits:- https://stackoverflow.com/a/50458578
 

1
1

11 Answers

69 votes
69 votes
Best answer

Take a tree for example 

  1. False. Every vertex of tree (other than leaves) is a cut vertex.
  2. True.
  3. False. There is no cut-edge (an edge whose removal increases the number of connected components in  graph) in $G_1 \cup G_2.$
  4. False. $G_1 \cup G_2$, $G_1$ and $G_2-$ all three graphs have same the chromatic number of $2$. 

Now, we have given counter examples for options A,C and D. So, option B is the only possible answer and its proof is given at end.

Correct Answer: Option B


We are given that $G_1$ and $G_2$ are connected. So, if we take any two vertices say $v_i$ and $v_j$ there must be path between them in both $G_1$ and $G_2.$ Now, it is given that $G_1\cap G_2$ is disconnected. That is, we have at least two vertices $v_1$ and $v_2$ such that there is no path between them in $G_1 \cap G_2.$

This means the path between $v_1$ and $v_2$ in $G_1$ and $G_2$ are distinct

When we have two distinct paths between a pair of vertices in a graph, it forms a cycle.

selected by

4 Comments

edited by
if the graph is weakly connected directed graph then there may not be cycle..

If graph is strongly connected .

Cycle exist ,no cut vertexe, no cut edge ...
0
0

@Subbu. do you have any reference to support your statement.

0
0
here G1 U G2 does not have a cut vertex in this example, am i correct?
1
1
43 votes
43 votes

Say G1 is Black colored graph, and G2 is red colored graph.
In this figure i overlapped both graphs, to see them together.


Given that $G_1 \cap G_2 $ is Disconnected, To make it happen G1 and G2 has to meet somewhere and then leave at some point, Once they leave each other and then have to meet somewhere again to have atleast two different disconnected component.
Now it is clear that this will form a cycle (See image has cycle.)

Note: If  $G_1 \cap G_2 $ need not to be disconnected then $G_1\cup G_2 $ need not to have a cycle.

(in this case when one of the Graph has cycles then only $G_1\cup G_2$ can have cycle.)

2 Comments

amazing explanation!!
0
0
Note: If (G1 intersection G2 )need not to be  disconnected then G1UG2 need not to have a cycle…

This statement true only if both edge sets are same … E1=E2 then only G1U G2 doesn't contain cycle.…
0
0
13 votes
13 votes
A very simple reasoning in this question may fetch the answer very fast. Since the two graphs G1 and G2 are connected, there will be path from a vertex to every other vertex in  both G1 and G2 but since G1 ∩ G2 is not connected , at least for one vertex pair v1,v2 the connecting paths must be different in both G1 and G2. Hence G1 union G2 will definitely have a cycle.
6 votes
6 votes

There would be "at least " one cycle there in G1 Union G2

1 comment

you should also proof ,do they have cut vertex??,i think no by seeing your examples
0
0
Answer:

Related questions