How can I create a condensation of a directed graph in Tikz?
Goal 1 The left is a directed graph, digraph, while the right is its condensation, source is page 183 of Handbook of Graph Theory. Aspiring discussion on this in chat.
Goal 2 The same as above but with simpler example.
Trial 2
MWE 2
\begin{tikzpicture}[x=2cm, y=2cm]
\tikzstyle{every node}=[draw, circle, fill=white, inner sep=3pt,minimum size=18pt]
%1
\draw (0,0) node(1111){1};
\draw (1,0) node(2222){2};
%2
\draw (3,0) node(1){1};
\draw (4,0) node(111){1};
\draw (5,0) node(2){2};
\draw (6,0) node(222){2};
\draw (7,0) node(3){3};
\draw[->](1)--(111);
\draw[<->](111)--(2);
\draw[->](2)--(222);
\draw[<->](222)--(3);
\node[left] at (0.8,-0.5) {(a)};
\node[left] at (5.2,-0.5) {(b)};
%-----------
%1
\draw (0,-1) node(1111){1};
\draw (1,-1) node(2222){2};
%2
\draw (3,-1) node(1){1};
\draw (4,-1) node(111){1};
\draw (5,-1) node(2){2};
\draw (6,-1) node(222){2};
\draw (7,-1) node(3){3};
\draw[->](1)--(111);
\draw[<->](111)--(2);
\draw[->](2)--(222);
\draw[<->](222)--(3);
\node[left] at (0.8,-1.5) {(a)$^*$};
\node[left] at (5.2,-1.5) {(b)$^*$};
\end{tikzpicture}
Perhaps relevant thread





