\( %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Mes commandes %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newcommand{\multirows}[3]{\multirow{#1}{#2}{$#3$}}%pour rester en mode math \renewcommand{\arraystretch}{1.3}%pour augmenter la taille des case \newcommand{\point}[1]{\marginnote{\small\vspace*{-1em} #1}}%pour indiquer les points ou le temps \newcommand{\dpl}[1]{\displaystyle{#1}}%megamode \newcommand{\A}{\mathscr{A}} \newcommand{\LN}{\mathscr{N}} \newcommand{\LL}{\mathscr{L}} \newcommand{\K}{\mathbb{K}} \newcommand{\N}{\mathbb{N}} \newcommand{\Z}{\mathbb{Z}} \newcommand{\Q}{\mathbb{Q}} \newcommand{\R}{\mathbb{R}} \newcommand{\C}{\mathbb{C}} \newcommand{\M}{\mathcal{M}} \newcommand{\D}{\mathbb{D}} \newcommand{\E}{\mathcal{E}} \renewcommand{\P}{\mathcal{P}} \newcommand{\G}{\mathcal{G}} \newcommand{\Kk}{\mathcal{K}} \newcommand{\Cc}{\mathcal{C}} \newcommand{\Zz}{\mathcal{Z}} \newcommand{\Ss}{\mathcal{S}} \newcommand{\B}{\mathbb{B}} \newcommand{\inde}{\bot\!\!\!\bot} \newcommand{\Proba}{\mathbb{P}} \newcommand{\Esp}[1]{\dpl{\mathbb{E}\left(#1\right)}} \newcommand{\Var}[1]{\dpl{\mathbb{V}\left(#1\right)}} \newcommand{\Cov}[1]{\dpl{Cov\left(#1\right)}} \newcommand{\base}{\mathcal{B}} \newcommand{\Som}{\textbf{Som}} \newcommand{\Chain}{\textbf{Chain}} \newcommand{\Ar}{\textbf{Ar}} \newcommand{\Arc}{\textbf{Arc}} \newcommand{\Min}{\text{Min}} \newcommand{\Max}{\text{Max}} \newcommand{\Ker}{\text{Ker}} \renewcommand{\Im}{\text{Im}} \newcommand{\Sup}{\text{Sup}} \newcommand{\Inf}{\text{Inf}} \renewcommand{\det}{\texttt{det}} \newcommand{\GL}{\text{GL}} \newcommand{\crossmark}{\text{\ding{55}}} \renewcommand{\checkmark}{\text{\ding{51}}} \newcommand{\Card}{\sharp} \newcommand{\Surligne}[2]{\text{\colorbox{#1}{ #2 }}} \newcommand{\SurligneMM}[2]{\text{\colorbox{#1}{ #2 }}} \newcommand{\norm}[1]{\left\lVert#1\right\rVert} \renewcommand{\lim}[1]{\underset{#1}{lim}\,} \newcommand{\nonor}[1]{\left|#1\right|} \newcommand{\Un}{1\!\!1} \newcommand{\sepon}{\setlength{\columnseprule}{0.5pt}} \newcommand{\sepoff}{\setlength{\columnseprule}{0pt}} \newcommand{\flux}{Flux} \newcommand{\Cpp}{\texttt{C++\ }} \newcommand{\Python}{\texttt{Python\ }} %\newcommand{\comb}[2]{\begin{pmatrix} #1\\ #2\end{pmatrix}} \newcommand{\comb}[2]{C_{#1}^{#2}} \newcommand{\arrang}[2]{A_{#1}^{#2}} \newcommand{\supp}[1]{Supp\left(#1\right)} \newcommand{\BB}{\mathcal{B}} \newcommand{\arc}[1]{\overset{\rotatebox{90}{)}}{#1}} \newcommand{\modpi}{\equiv_{2\pi}} \renewcommand{\Re}{Re} \renewcommand{\Im}{Im} \renewcommand{\bar}[1]{\overline{#1}} \newcommand{\mat}{\mathcal{M}} \newcommand{\und}[1]{{\mathbf{\color{red}\underline{#1}}}} \newcommand{\rdots}{\text{\reflectbox{$\ddots$}}} \newcommand{\Compa}{Compa} \newcommand{\dint}{\dpl{\int}} \newcommand{\intEFF}[2]{\left[\!\left[#1 ; #2\right]\!\right]} \newcommand{\intEFO}[2]{\left[\!\left[#1 ; #2\right[\!\right[} \newcommand{\intEOF}[2]{\left]\!\left]#1 ; #2\right]\!\right]} \newcommand{\intEOO}[2]{\left]\!\left]#1 ; #2\right[\!\right[} \newcommand{\ou}{\vee} \newcommand{\et}{\wedge} \newcommand{\non}{\neg} \newcommand{\implique}{\Rightarrow} \newcommand{\equivalent}{\Leftrightarrow} \newcommand{\Ab}{\overline{A}} \newcommand{\Bb}{\overline{B}} \newcommand{\Cb}{\overline{C}} \newcommand{\Cl}{\texttt{Cl}} \newcommand{\ab}{\overline{a}} \newcommand{\bb}{\overline{b}} \newcommand{\cb}{\overline{c}} \newcommand{\Rel}{\mathcal{R}} \newcommand{\superepsilon}{\varepsilon\!\!\varepsilon} \newcommand{\supere}{e\!\!e} \makeatletter \newenvironment{console}{\noindent\color{white}\begin{lrbox}{\@tempboxa}\begin{minipage}{\columnwidth} \ttfamily \bfseries\vspace*{0.5cm}} {\vspace*{0.5cm}\end{minipage}\end{lrbox}\colorbox{black}{\usebox{\@tempboxa}} } \makeatother \def\ie{\textit{i.e. }} \def\cf{\textit{c.f. }} \def\vide{ { $ {\text{ }} $ } } %Commande pour les vecteurs \newcommand{\grad}{\overrightarrow{Grad}} \newcommand{\Vv}{\overrightarrow{v}} \newcommand{\Vu}{\overrightarrow{u}} \newcommand{\Vw}{\overrightarrow{w}} \newcommand{\Vup}{\overrightarrow{u'}} \newcommand{\Zero}{\overrightarrow{0}} \newcommand{\Vx}{\overrightarrow{x}} \newcommand{\Vy}{\overrightarrow{y}} \newcommand{\Vz}{\overrightarrow{z}} \newcommand{\Vt}{\overrightarrow{t}} \newcommand{\Va}{\overrightarrow{a}} \newcommand{\Vb}{\overrightarrow{b}} \newcommand{\Vc}{\overrightarrow{c}} \newcommand{\Vd}{\overrightarrow{d}} \newcommand{\Ve}[1]{\overrightarrow{e_{#1}}} \newcommand{\Vf}[1]{\overrightarrow{f_{#1}}} \newcommand{\Vn}{\overrightarrow{0}} \newcommand{\Mat}{Mat} \newcommand{\Pass}{Pass} \newcommand{\mkF}{\mathfrak{F}} \renewcommand{\sp}{Sp} \newcommand{\Co}{Co} \newcommand{\vect}[1]{\texttt{Vect}\dpl{\left( #1\right)}} \newcommand{\prodscal}[2]{\dpl{\left\langle #1\left|\vphantom{#1 #2}\right. #2\right\rangle}} \newcommand{\trans}[1]{{\vphantom{#1}}^{t}{#1}} \newcommand{\ortho}[1]{{#1}^{\bot}} \newcommand{\oplusbot}{\overset{\bot}{\oplus}} \SelectTips{cm}{12}%Change le bout des flèches dans un xymatrix \newcommand{\pourDES}[8]{ \begin{itemize} \item Pour la ligne : le premier et dernier caractère forment $#1#2$ soit $#4$ en base 10. \item Pour la colonne : les autres caractères du bloc forment $#3$ soit $#5$ en base 10. \item A l'intersection de la ligne $#4+1$ et de la colonne $#5+1$ de $S_{#8}$ se trouve l'entier $#6$ qui, codé sur $4$ bits, est \textbf{\texttt{$#7$}}. \end{itemize} } \)

Connexité

Définition


Soit \( x\) un sommet d'un graphe \( \G\) . La composante connexe de \( x\) est le sous-graphe de \( \G\) engendré par \( \Gamma^+(x,\nonor{\G})=\Gamma^-(x,\nonor{\G})\) . On le note \( CC(x,\G)\) .
Autrement dis : la composante connexe d'un sommet est le sous-graphe engendré par tous les ascendants ou descendants de ce sommet. \[\G\] \[ \xymatrix@R=0.5cm{ &a\ar[rrd]&&\\ b\ar@/^1pc/[rr]\ar@/_1pc/[rd]&&c\ar@/^1pc/[dl]&d\ar@/_1pc/[ddl]\ar@(dr,ur)[]\\ &e\ar@/_1pc/[ul]\ar@/_1pc/[rr]\ar@(dl,dr)[]&&f\ar@(dr,ur)[]\\ &&g\ar@/_5pc/[ruu]\ar@/^3pc/[uuul]& } \] \[CC(d,\G)\] \[ \xymatrix@R=0.5cm{ &a\ar[rrd]&&\\ &&&d\ar@/_1pc/[ddl]\ar@(dr,ur)[]\\ &&&\\ &&g\ar@/_5pc/[ruu]\ar@/^3pc/[uuul]& } \] \[ \xymatrix@C=1.5cm@R=0.5cm{ a\ar@{-}@/^1pc/[rr]\ar@{-}[rrd]&b\ar@{-}[d]&c\ar@{-}[d]\\ f&e&d\ar@{-}@/^1pc/[ll] } \] \[ \xymatrix@C=1.5cm@R=0.5cm{ a\ar@{-}@/^1pc/[rr]\ar@{-}[rrd]&&c\ar@{-}[d]\\ f&&d\ar@{-}@/^1pc/[ll] } \]

Remarque

L'algorithme du marquage permet donc de déterminer les composantes connexes d'un graphe. Avec l'exemple développé au paragraphe précédent la composante connexe de \( a\) est le sous-graphe engendré par les sommets \( \{a,g,j,k,l,n\}\) . De la même manière la composante connexe de \( b\) est le sous-graphe engendré par les sommets \( \{b,c,d,e,f,h,i,m,o\}\) \[\xymatrix@R=0.25cm@C=1cm{ &a\ar@{-}[dl]\ar@{-}[dd]\ar@{-}[dr]&&&\\ j&&l\ar@{-}[r]&n&\\ &k\ar@{-}[ur]&&&\\ &&g\ar@{-}@/^1pc/[lluu]\ar@{-}[uur]&& }\qquad \xymatrix@R=0.25cm@C=1cm{ &&b\ar@{-}@/^1pc/[dd]\ar@{-}[r]&c\ar@{-}[rd]&\\ &&&&d\ar@{-}[dl]\\ i&&m&o&e\ar@{-}[dl]\\ &h\ar@{-}[ul]\ar@{-}[ur]&&f\ar@{-}[ul]& }\]

Proposition


Soient \( x\) et \( y\) deux sommets d'un graphe \( \G\) . \[CC(x,\G) = CC(y,\G)\qquad \Longleftrightarrow\qquad \Big(\exists \alpha \in \Chain(\nonor{\G}),\quad \big(or(\alpha)=x\wedge ab(\alpha)=y\big)\Big)\]

Démonstration

Exercice.

Définition


On dira qu'un graphe est connexe s'il ne possède qu'une seul composante connexe.
\[ \xymatrix@C=2cm@R=1cm{ a\ar@{-}[d]\ar@{-}[dr]\ar@{-}[drr]\ar@{-}@/^1pc/[rr]&b\ar@{-}[d]\ar@{-}[r]&c\ar@{-}[dll]\\ f&e&d } \] Ce graphe est connexe.

Définition


Soit \( x\) un sommet d'un graphe orienté \( \G\) . La composante connexe forte de \( x\) est le sous-graphe de \( \G\) engendré par \( \Gamma^+(x,\G)\cap\Gamma^-(x,\G)\) . On le note \( CCF(x,\G)\) .
\[\G\] \[ \xymatrix@R=0.5cm{ &a\ar[rrd]&&\\ b\ar@/^1pc/[rr]\ar@/_1pc/[rd]&&c\ar@/^1pc/[dl]&d\ar@/_1pc/[ddl]\ar@(dr,ur)[]\\ &e\ar@/_1pc/[ul]\ar@/_1pc/[rr]\ar@(dl,dr)[]&&f\ar@(dr,ur)[]\\ &&g\ar@/_5pc/[ruu]\ar@/^3pc/[uuul]& } \] \[CCF(a,\G)\] \[ \xymatrix@R=0.5cm{ &a\ar[rrd]&&\\ &&&d\ar@/_1pc/[ddl]\ar@(dr,ur)[]\\ &&&\\ &&g\ar@/_5pc/[ruu]\ar@/^3pc/[uuul]& } \]

Définition


Soit \( \G\) un graphe orienté. On définit le graphe réduit de \( \G\) , noté \( \G_{red}\) par : \[\Som(\G_{red})=\left\{CCF(x,\G)\Big|x\in \Som(\G)\right\}\] \[\Arc(\G_{red})=\left\{(I,J)\in \Som(\G_{red})\Big|\Arc(\G)\cap(I\times J)\neq\varnothing\right\}\]
\[\G\] \[ \xymatrix@R=0.5cm{ &a\ar[rrd]&&\\ b\ar@/^1pc/[rr]\ar@/_1pc/[rd]&&c\ar@/^1pc/[dl]&d\ar@/_1pc/[ddl]\ar@(dr,ur)[]\\ &e\ar@/_1pc/[ul]\ar@/_1pc/[rr]\ar@(dl,dr)[]&&f\ar@(dr,ur)[]\\ &&g\ar@/_5pc/[ruu]\ar@/^3pc/[uuul]& } \] \[\G_{red}\] \[ \xymatrix{ \underset{\{a,d,g\}}{CCF(a,\G)}\ar@(ul,ur)[]&&{\underset{\{b,c,e\}}{CCF(b,\G})}\ar@(ul,ur)[]\\ &{\underset{\{f\}}{CCF(f,\G)}}\ar@{{<}-}[ru]\ar@(lu,ru)[]& } \]

Proposition


Un graphe orienté est connexe si et seulement si son graphe réduit est connexe.

Démonstration

Exercice.