Changed bipartite graph colors

This commit is contained in:
Louis Lacoste 2023-06-15 18:16:52 +02:00
parent 035bd4e929
commit 1254d5aaa8
2 changed files with 18 additions and 13 deletions

Binary file not shown.

View file

@ -41,12 +41,17 @@
% pour tickz multilevel % pour tickz multilevel
\definecolor{redorg}{RGB}{215,48,39} \definecolor{redorg}{RGB}{215,48,39}
\definecolor{orangeorg}{RGB}{253,174,97} \definecolor{orangeorg}{RGB}{253,174,97}
\definecolor{blueind}{RGB}{69,117,233} \definecolor{blueind}{RGB}{69,117,233}
\definecolor{cyanind}{RGB}{116,173,209} \definecolor{cyanind}{RGB}{116,173,209}
\definecolor{electricblue}{RGB}{125, 249, 255}
\definecolor{greenind}{RGB}{112,130,56} \definecolor{greenind}{RGB}{112,130,56}
\definecolor{grassgreen}{RGB}{124, 252, 0}
\definecolor{shamrockgreen}{RGB}{0, 158, 96} \definecolor{burntorange}{RGB}{204, 85, 0}
\definecolor{peargreen}{RGB}{201, 204, 63} \definecolor{goldenyellow}{RGB}{255, 192, 0}
\definecolor{peach}{RGB}{255, 229, 180}
\definecolor{gray}{RGB}{128,128,128} \definecolor{gray}{RGB}{128,128,128}
% Nouvelles commandes % Nouvelles commandes
@ -77,7 +82,7 @@ $V$ vertices.
\tikzstyle{every edge}=[-,>=stealth',shorten >=1pt,auto,draw,line width=1.5pt] \tikzstyle{every edge}=[-,>=stealth',shorten >=1pt,auto,draw,line width=1.5pt]
\tikzstyle{every state}=[draw, text=white,scale=0.95, transform shape] \tikzstyle{every state}=[draw, text=white,scale=0.95, transform shape]
\tikzstyle{every state}=[draw=none,text=white,scale=0.75, transform shape] \tikzstyle{every state}=[draw=none,text=white,scale=0.75, transform shape]
\tikzstyle{every node}=[fill=orangeorg] \tikzstyle{every node}=[fill=electricblue]
\node[state, draw=black!50] (A1) at (0,5) {\textbf{R1}}; \node[state, draw=black!50] (A1) at (0,5) {\textbf{R1}};
\node[state, draw=black!50] (A2) at (2.5,5) {\textbf{R2}}; \node[state, draw=black!50] (A2) at (2.5,5) {\textbf{R2}};
@ -169,22 +174,22 @@ This model supposes that:
\node[state, draw=black!50] (R21) at (6,5) {\textbf{R21}}; \node[state, draw=black!50] (R21) at (6,5) {\textbf{R21}};
\node[state, draw=black!50] (R22) at (7,5) {\textbf{R22}}; \node[state, draw=black!50] (R22) at (7,5) {\textbf{R22}};
\tikzstyle{every node}=[fill=orangeorg] \tikzstyle{every node}=[fill=electricblue]
\node[state, draw=black!50] (R31) at (10,5) {\textbf{R3}}; \node[state, draw=black!50] (R31) at (10,5) {\textbf{R3}};
\tikzstyle{every node}=[fill=grassgreen, shape=rectangle] \tikzstyle{every node}=[fill=burntorange, shape=rectangle]
\tikzstyle{every state}=[draw=none,text=white,scale=0.75, transform shape, shape=rectangle] \tikzstyle{every state}=[draw=none,text=white,scale=0.75, transform shape, shape=rectangle]
\node[state, draw=black!50] (B1) at (0,0) {\textbf{C11}}; \node[state, draw=black!50] (B1) at (0,0) {\textbf{C11}};
\node[state, draw=black!50] (B2) at (1,0) {\textbf{C12}}; \node[state, draw=black!50] (B2) at (1,0) {\textbf{C12}};
\tikzstyle{every node}=[fill=shamrockgreen, shape=rectangle] \tikzstyle{every node}=[fill=goldenyellow, shape=rectangle]
\node[state, draw=black!50] (B3) at (4,0) {\textbf{C21}}; \node[state, draw=black!50] (B3) at (4,0) {\textbf{C21}};
\node[state, draw=black!50] (B4) at (5,0) {\textbf{C22}}; \node[state, draw=black!50] (B4) at (5,0) {\textbf{C22}};
\tikzstyle{every node}=[fill=peargreen, shape=rectangle] \tikzstyle{every node}=[fill=peach, shape=rectangle]
\node[state, draw=black!50] (B5) at (10,0) {\textbf{C31}}; \node[state, draw=black!50] (B5) at (10,0) {\textbf{C31}};
\tikzstyle{every edge}=[-,>=stealth',shorten >=1pt,auto,draw,line width=1.5pt,draw opacity=0.2] \tikzstyle{every edge}=[-,>=stealth',shorten >=1pt,auto,draw,line width=1.5pt,draw opacity=0.2]
\path (R11) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{blueind}\bullet}{\color{grassgreen}\bullet}}$} (B1); \path (R11) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{blueind}\bullet}{\color{burntorange}\bullet}}$} (B1);
\path (R11) edge (B2); \path (R11) edge (B2);
\path (R11) edge (B3); \path (R11) edge (B3);
\path (R11) edge (B4); \path (R11) edge (B4);
@ -197,17 +202,17 @@ This model supposes that:
\path (R13) edge [] (B1); \path (R13) edge [] (B1);
\path (R13) edge (B2); \path (R13) edge (B2);
\path (R13) edge (B3); \path (R13) edge (B3);
\path (R13) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{blueind}\bullet}{\color{shamrockgreen}\bullet}}$} (B4); \path (R13) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{blueind}\bullet}{\color{goldenyellow}\bullet}}$} (B4);
\path (R21) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{cyanind}\bullet}{\color{shamrockgreen}\bullet}}$} (B3); \path (R21) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{cyanind}\bullet}{\color{goldenyellow}\bullet}}$} (B3);
\path (R21) edge (B4); \path (R21) edge (B4);
\path (R21) edge (B5); \path (R21) edge (B5);
\path (R22) edge (B3); \path (R22) edge (B3);
\path (R22) edge (B4); \path (R22) edge (B4);
\path (R22) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{cyanind}\bullet}{\color{peargreen}\bullet}}$} (B5); \path (R22) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{cyanind}\bullet}{\color{peach}\bullet}}$} (B5);
\path (R31) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{orangeorg}\bullet}{\color{peargreen}\bullet}}$} (B5); \path (R31) edge[-,>=stealth',shorten >=1pt,auto,draw=gray,line width=1.5pt, fill=gray, opacity=1] node[anchor=center, fill=none] {$\alpha_{{\color{electricblue}\bullet}{\color{peach}\bullet}}$} (B5);
\end{tikzpicture} \end{tikzpicture}
\caption[LBMvisu]{An LBM model visualization} \caption[LBMvisu]{An LBM model visualization}