I am reading about strong connected components in below link.
https://www.ics.uci.edu/~eppstein/161/960220.html
Here author mentioned
Recall that a relation is another word for a collection of pairs of objects (if you like, you can think of a relation as being a directed graph, but not the same one we're using to define connectivity). An equivalence relation a # b is a relation that satisfies three simple properties:
- Reflexive property: For all a, a # a. Any vertex is strongly connected to itself, by definition.
- Symmetric property: If a # b, then b # a. For strong connectivity, this follows from the symmetry of the definition. The same two paths (one from a to b and another from b to a) that show that a ~ b, looked at in the other order (one from b to a and another from a to b) show that b ~ a.
- Transitive property: If a # b and b # c, then a # c. Let's expand this out for strong connectivity: if a ~ b and b ~ c, we have four paths: a-b, b-a, b-c, and c-b. Concatenating them in pairs a-b-c and c-b-a produces two paths connecting a-c and c-a, so a ~ c, showing that the transitive property holds for strong connectivity.
Since all three properties are true of strong connectivity, strong connectivity is an equivalence relation.
Note that it was critical for our definition that we allowed the paths a-b and b-a to overlap. If we made a small change such as defining two vertices to be connected if they are part of a directed cycle, we wouldn't be able to concatenate the paths and show that the transitive property holds.
My question is on last statement: what does author mean by we allowed paths a-b and b-a to overlap?
Moreover, what does author mean by: "If we made a small change such as defining two vertices to be connected if they are part of a directed cycle, we wouldn't be able to concatenate the paths and show that the transitive property holds"?
Thanks for your time
A directed cycle usually means a simple directed cycle (no repetition)
Consider the Graph
G = (V,E)
V = {A,B,C,D}
E = {(A,B),(B,D),(D,C),(C,B),(D,A)}
(Draw it out, it should help, note that those edges are tuples and are therefore directed)
If connectedness were defined as "belonging to the same simple cycle" then we can say that A and B are connected through ABDA. B and C are connected through BDCB.
If this connectedness were transitive then because of the definition of the transitive property we can conclude that A and C must be connected.
From our (modified, loose) definition of connectedness there must exist a simple cycle containing A and C.
Of course, there isn't, it's not possible to concatenate the cycles made for A and B, and B and C because the edge BD would have to be repeated in joining them.