Move to tikz

This commit is contained in:
Efi Fogel 2024-01-15 15:49:39 +02:00
parent 8a886ea334
commit ecafb2e649
5 changed files with 236 additions and 207 deletions

View File

@ -2,56 +2,62 @@
\input{header} \input{header}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\psscalebox{1.8}{\arrset{1}% \begin{tikzpicture}[scale=1]
\pspicture[](-1,-1)(8,7) \myAxes{-1}{-1}{8}{7}
\arraxes(0,0)(-1,-1)(8,7) \coordinate (a) at (0,0);
\arrMainVertex(0,0){1} \coordinate (b) at (0,3);
\arrMainVertex(0,3){2} \coordinate (d) at (2,3);
\arrEmptyVertex(1,3){3} \coordinate (j) at (4,3);
\arrMainVertex(2,3){4} \coordinate (l) at (5,3);
\arrMainVertex(2,6){5}
\arrMainVertex(3,1){6}
\arrEmptyVertex(3,3){7}
\arrMainVertex(3,4){8}
\arrMainVertex(3,5){9}
\arrMainVertex(4,3){10}
\arrEmptyVertex(4,4){11}
\arrMainVertex(5,3){12}
\arrMainVertex(6,4){13}
\arrMainVertex(7,1){14}
\arrCrossVertex(4,6){x1}\uput[-45]{0}(4,6){$q_1$}
\arrCrossVertex(6,2){x2}\uput[45]{0}(6,2){$q_2$}
\arrCrossVertex(2,4){x3}\uput[45]{0}(2,4){$q_3$}
% %
\ncline[linewidth=1pt,linecolor=blue]{1}{3} \arrMainVertexZ(a){1}
\ncline[linewidth=1pt,linecolor=blue]{3}{5} \arrMainVertexZ(b){2}
\ncline[linewidth=1pt,linecolor=blue]{5}{9} \arrIntersectionVertexZ(1,3){3}
\ncline[linewidth=1pt,linecolor=blue]{9}{11} \arrMainVertexZ(d){4}
\ncline[linewidth=1pt,linecolor=blue]{11}{12} \arrMainVertexZ(2,6){5}
\ncline[linewidth=1pt,linecolor=blue]{12}{14} \arrMainVertexZ(3,1){6}
\arrIntersectionVertexZ(3,3){7}
\arrMainVertexZ(3,4){8}
\arrMainVertexZ(3,5){9}
\arrMainVertexZ(j){10}
\arrIntersectionVertexZ(4,4){11}
\arrMainVertexZ(l){12}
\arrMainVertexZ(6,4){13}
\arrMainVertexZ(7,1){14}
% %
\ncline[linewidth=1pt,linecolor=blue]{6}{7} \draw[edge](1)--(3);
\ncline[linewidth=1pt,linecolor=blue]{7}{8}\Bput[1pt]{\textcolor{blue}{$s_2$}} \draw[edge](3)--(5);
\ncline[linewidth=1pt,linecolor=blue]{8}{9} \draw[edge](5)--(9);
\draw[edge](9)--(11);
\draw[edge](11)--(12);
\draw[edge](12)--(14);
% %
\ncline[linewidth=1pt,linecolor=blue]{8}{11} \draw[edge](6)--node[sloped,below,pos=0.4] {\textcolor{blue}{$s_2$}} (7);
\ncline[linewidth=1pt,linecolor=blue]{11}{13} \draw[edge](7)--(8);
\draw[edge](8)--(9);
% %
\ncline[linewidth=1pt,linecolor=blue]{4}{7} \draw[edge](8)--(11);
\ncline[linewidth=1pt,linecolor=blue]{7}{10} \draw[edge](11)--(13);
\ncline[linewidth=1pt,linecolor=blue]{10}{12}
% %
\ncline[linestyle=dashed,dash=2pt 2pt,linewidth=1pt,linecolor=red]{2}{3} \draw[edge](4)--(7);
\ncline[linestyle=dashed,dash=2pt 2pt,linewidth=1pt,linecolor=red]{3}{4} \draw[edge](7)--(10);
\ncline[linestyle=dashed,dash=2pt 2pt,linewidth=1pt,linecolor=red]{4}{7} \draw[edge](10)--(12);
\ncline[linestyle=dashed,dash=2pt 2pt,linewidth=1pt,linecolor=red]{7}{10}
% %
\pnode(2,2){a}\uput{2pt}[-90]{0}(2,2){\textcolor{red}{$s_1$}} \draw[edge=red,dashed](2)--(3);
\nccurve[linewidth=0.25pt,angleA=-90,angleB=90]{2}{a} \draw[edge=red,dashed](3)--(4);
\nccurve[linewidth=0.25pt,angleA=-90,angleB=90]{10}{a} \draw[edge=red,dashed](4)--(7);
\pnode(3.5,2){b}\uput{2pt}[-90]{0}(3.5,2){\textcolor{blue}{$s_3$}} \draw[edge=red,dashed](7)--(10);
\nccurve[linewidth=0.25pt,angleA=-90,angleB=90]{4}{b} %
\nccurve[linewidth=0.25pt,angleA=-90,angleB=90]{12}{b} \arrQueryLabeledVertexZ[-45](4,6){x1}{$q_1$}
\endpspicture \arrQueryLabeledVertexZ[45](6,2){x2}{$q_2$}
} \arrQueryLabeledVertexZ[45](2,4){x3}{$q_3$}
%
\draw [decoration={calligraphic brace,
raise=2pt,
amplitude=10pt,aspect=0.5},decorate,line width=0.2pt] (j)--(b)
node[midway,below=10pt,red]{$s_1$};
\draw [decoration={calligraphic brace,raise=2pt,
amplitude=10pt,aspect=0.5},decorate,line width=0.2pt] (d)--(l)
node[midway,above=10pt,blue]{$s_3$};
\end{tikzpicture}
\end{document} \end{document}

View File

@ -11,7 +11,7 @@
% ======== Math =============================================================== % ======== Math ===============================================================
\usepackage{amsmath,amscd,amsthm} \usepackage{amsmath,amscd,amsthm}
\usepackage{empheq} \usepackage{empheq}
\usepackage{bm}
% ======== pdf, url and hyperlink ============================================= % ======== pdf, url and hyperlink =============================================
% \usepackage{url} % \usepackage{url}
\usepackage{hyperref} \usepackage{hyperref}
@ -42,24 +42,33 @@
% graphicx. % graphicx.
\usepackage{tikz} \usepackage{tikz}
\usepackage{pgfplots} \usepackage{pgfplots}
% \pgfplotsset{compat=1.16}
\pgfplotsset{compat=newest}
\usepgfplotslibrary{fillbetween}
\usepackage{tikz-3dplot}
\usepackage{mathptmx} \usepackage{mathptmx}
\usetikzlibrary{calc} \usetikzlibrary{arrows,arrows.meta}
\usetikzlibrary{automata}
\usetikzlibrary{backgrounds} \usetikzlibrary{backgrounds}
\usetikzlibrary{calligraphy}
\usetikzlibrary{calc}
\usetikzlibrary{chains}
\usetikzlibrary{cd}
\usetikzlibrary{decorations.pathmorphing} \usetikzlibrary{decorations.pathmorphing}
\usetikzlibrary{decorations.markings} \usetikzlibrary{decorations.markings}
\usetikzlibrary{decorations.pathreplacing} \usetikzlibrary{decorations.pathreplacing}
\usetikzlibrary{patterns}
\usetikzlibrary{matrix}
\usetikzlibrary{fit} \usetikzlibrary{fit}
\usetikzlibrary{arrows,arrows.meta} \usetikzlibrary{intersections}
\usetikzlibrary{automata} \usetikzlibrary{math}
\usetikzlibrary{matrix}
\usetikzlibrary{patterns}
\usetikzlibrary{positioning} \usetikzlibrary{positioning}
\usetikzlibrary{shapes} \usetikzlibrary{shapes}
\usetikzlibrary{chains} \usetikzlibrary{shapes.geometric}
\usetikzlibrary{shapes.misc}
\usetikzlibrary{shadows.blur}
\usetikzlibrary{spy} \usetikzlibrary{spy}
\usetikzlibrary{intersections}
\usetikzlibrary{through} \usetikzlibrary{through}
\usetikzlibrary{cd}
\usepackage{tikz-3dplot} \usepackage{tikz-3dplot}
%\usetikzlibrary{quotes,angles,graph} %\usetikzlibrary{quotes,angles,graph}
\tikzset{% \tikzset{%
@ -72,6 +81,24 @@
point/.default=red, point/.default=red,
halfedge/.style={-{Stealth[left,scale=1.5]},commutative diagrams/shift left=#1}, halfedge/.style={-{Stealth[left,scale=1.5]},commutative diagrams/shift left=#1},
halfedge/.default=3pt halfedge/.default=3pt
edge/.style={line width=0.8pt,draw=#1},
edge/.default=blue,
halfedge/.style={-{Stealth[left,scale=1.5]},
commutative diagrams/shift left=#1},
halfedge/.default=3pt,
cross/.style={#1,cross out,draw,very thick,rotate=0,
minimum size=2*(4pt-\pgflinewidth),inner sep=0pt,outer sep=0pt},
cross/.default=red
}
\pgfplotsset{%
axisLimits/.style={enlarge x limits={abs value=\axisLimitsAbsValue,auto},
enlarge y limits={abs value=\axisLimitsAbsValue,auto}}}
\newlength{\axisLimitsAbsValue}\setlength{\axisLimitsAbsValue}{0.08cm}
% ------------------------------------------------------------------------------
\newcommand{\mySimpleAxes}[4]{%
\draw[-{Stealth[scale=1.5]}] (#1,0)--(#3,0) node[right]{$x$};
\draw[-{Stealth[scale=1.5]}] (0,#2)--(0,#4) node[above]{$y$};
>>>>>>> Stashed changes
} }
% ------------------------------------------------------------------------------ % ------------------------------------------------------------------------------
% #1 half length of tick % #1 half length of tick

View File

@ -2,33 +2,38 @@
\input{header} \input{header}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\psscalebox{1.8}{\arrset{1}% \begin{tikzpicture}[scale=1.0,smooth]
\pspicture[](-3.1,-0.725)(3.1,1.709) \begin{axis}[ticks=none,axis line style={draw=none},unit vector ratio*=1 1 1,
enlarge x limits={abs value=0.08,auto},
enlarge y limits={abs value=0.08,auto},
% The following miraculously solves the wierd shift in the intersection
% computation
anchor=left of west
]
% x^3+x^2-4x-8y=-1
% -x^3+x^2+4x-8y=-1
\addplot [draw=none,name path=f11,domain=-2:0]{(1-x^3+x^2+4*x)*0.125};
\addplot [draw=none,name path=f12,domain=0:-2]{(1+x^3+x^2-4*x)*0.125};
\addplot [draw=none,name path=f21,domain=0:2]{(1-x^3+x^2+4*x)/8.0};
\addplot [draw=none,name path=f22,domain=2:0]{(1+x^3+x^2-4*x)/8.0};
% %
\pscustom[linecolor=blue,linewidth=0pt,fillstyle=hlines,hatchcolor=orange,hatchsep=2pt,hatchwidth=1pt]{% \addplot [name path global=A,color=blue,thick,domain=-2.5:3]
\psplot{-2}{0}{0 x x mul x mul add x x mul add x 4 mul sub 1 add 8 div} {(1-x^3+x^2+4*x)*0.125} coordinate[point,pos=0] coordinate[point];
\psplot{0}{-2}{0 x x mul x mul sub x x mul add x 4 mul add 1 add 8 div} \addplot [name path global=B,color=blue,thick,domain=-3:2.5]
} {(1+x^3+x^2-4*x)*0.125} coordinate[point,pos=0] coordinate[point];
\coordinate [name intersections={of=A and B,name=x}];
% %
\pscustom[linecolor=blue,linewidth=0pt,fillstyle=vlines,hatchcolor=orange,hatchsep=2pt,hatchwidth=1pt]{ \node[point=white] at (x-1) {};
\psplot{0}{2}{0 x x mul x mul add x x mul add x 4 mul sub 1 add 8 div} \node[point=white] at (x-2) {};
\psplot{2}{0}{0 x x mul x mul sub x x mul add x 4 mul add 1 add 8 div} \node[point=white] at (x-3) {};
}
% %
\psplot[linecolor=blue]{-2.5}{3}{0 x x mul x mul sub x x mul add x 4 mul add 1 add 8 div} \addplot[pattern={north east lines},pattern color=orange] fill between[of=f11 and f12];
\psplot[linecolor=blue]{-3}{2.5}{0 x x mul x mul add x x mul add x 4 mul sub 1 add 8 div} \addplot[pattern={north west lines},pattern color=orange] fill between[of=f21 and f22];
% %
\arrMainVertex(-3,-0.625){1} \node at (-2.5,1){\textcolor{blue}{$c_1$}};
\arrMainVertex( 3,-0.625){2} \node at (-2.9,0.15){\textcolor{blue}{$c_2$}};
\arrMainVertex(-2.5,1.609){3} \node at (-1,0.3){$\bm{f_1}$};
\arrMainVertex( 2.5,1.609){4} \node at (1,0.3){$\bm{f_2}$};
\arrEmptyVertex(-2,0.625){x1} \end{axis}
\arrEmptyVertex( 2,0.625){x2} \end{tikzpicture}
\arrEmptyVertex(0,0.125){x3}
\rput(-2.5,1){\textcolor{blue}{$c_1$}}
\rput(-2.9,0.15){\textcolor{blue}{$c_2$}}
\rput(-1,0.3){\boldmath{$f_1$}}
\rput(1,0.3){\boldmath{$f_2$}}
\endpspicture
}
\end{document} \end{document}

View File

@ -2,7 +2,7 @@
\input{header} \input{header}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\psscalebox{1.8}{\arrset{0.9}% \psscalebox{1.0}{\arrset{0.75}%
\begin{pspicture}(-3.5,-3.5)(2.1,2.1) \begin{pspicture}(-3.5,-3.5)(2.1,2.1)
\newpsstyle{SimpleHandle}{fillstyle=solid,fillcolor=white,framearc=0.5} \newpsstyle{SimpleHandle}{fillstyle=solid,fillcolor=white,framearc=0.5}
\psframe[linewidth=0.25pt](-2,-2)(2,2) \psframe[linewidth=0.25pt](-2,-2)(2,2)

View File

@ -2,143 +2,134 @@
\input{header} \input{header}
\pagestyle{empty} \pagestyle{empty}
\begin{document} \begin{document}
\psscalebox{1.8}{\arrset{1}% \begin{tikzpicture}[scale=0.93]
\begin{pspicture}(0,0)(10,7) \fill[lightyellow](0,0)rectangle(1,7);
\psframe*[linecolor=lightyellow](0,0)(1,7) \fill[lightyellow](9,0)rectangle(10,7);
\psframe*[linecolor=lightyellow](9,0)(10,7) \fill[lightyellow](1,0)rectangle(9,1);
\psframe*[linecolor=lightyellow](1,0)(9,1) \fill[lightyellow](1,6)rectangle(9,7);
\psframe*[linecolor=lightyellow](1,6)(9,7) \draw[line width=0.25pt](0,0)rectangle(10,7);
\psframe[linewidth=0.25pt](0,0)(10,7)
% %
\arrlvertex[225](1,1){bl}{$v_{\mathrm{bl}}$} \arrMainLabeledVertexZ[225](1,1){bl}{$v_{\mathrm{bl}}$}
\arrlvertex[135](1,6){tl}{$v_{\mathrm{tl}}$} \arrMainLabeledVertexZ[135](1,6){tl}{$v_{\mathrm{tl}}$}
\arrlvertex[315](9,1){br}{$v_{\mathrm{br}}$} \arrMainLabeledVertexZ[315](9,1){br}{$v_{\mathrm{br}}$}
\arrlvertex[45](9,6){tr}{$v_{\mathrm{tr}}$} \arrMainLabeledVertexZ[45](9,6){tr}{$v_{\mathrm{tr}}$}
\arrv[180](1,2.5){1} \arrvZ[180](1,2.5){1}
\arrv[180](1,4){2} \arrvZ[180](1,4){2}
\arrv[180](1,5){3} \arrvZ[180](1,5){3}
\arrv[270](5,1){4} \arrvZ[270](5,1){4}
\arrv[90](5,6){5} \arrvZ[90](5,6){5}
\arrv[0](9,1.5){6} \arrvZ[0](9,1.5){6}
\arrv[0](9,4){7} \arrvZ[0](9,4){7}
\arrv[0](9,5.5){8} \arrvZ[0](9,5.5){8}
% %
\arrEmptyIntersectionVertex(1,4)(9,4)(5,1)(5,6){9} \node[point=white] (9) at (intersection of 2--7 and 4--5) {};
\arrEmptyIntersectionVertex(1,4)(9,4)(1,5)(9,1.5){10} \node[point=white] (10) at (intersection of 2--7 and 3--6) {};
\arrEmptyIntersectionVertex(1,5)(9,1.5)(5,1)(5,6){11} \node[point=white] (11) at (intersection of 3--6 and 4--5) {};
\arrEmptyIntersectionVertex(1,5)(9,1.5)(1,2.5)(9,5.5){12} \node[point=white] (12) at (intersection of 3--6 and 1--8) {};
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{bl}{1} \draw[dashed,line width=0.5pt](bl)--(1);
\ncline[linewidth=0.5pt,offset=3pt]{->}{bl}{1} \draw[halfedge](bl)to(1);
\ncline[linewidth=0.5pt,offset=3pt,nodesepB=1pt]{->}{1}{bl} \draw[halfedge](1)to(bl);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{1}{2} \draw[dashed,line width=0.5pt](1)--(2);
\ncline[linewidth=0.5pt,offset=3pt]{->}{1}{2} \draw[halfedge](1)to(2);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=2pt]{->}{2}{1} \draw[halfedge,shorten >=1pt](2)to(1);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{2}{3} \draw[dashed,line width=0.5pt](2)--(3);
\ncline[linewidth=0.5pt,offset=3pt]{->}{2}{3} \draw[halfedge](2)to(3);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=3pt,nodesepB=1pt]{->}{3}{2} \draw[halfedge,shorten <=2pt](3)to(2);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{3}{tl} \draw[dashed,line width=0.5pt](3)--(tl);
\ncline[linewidth=0.5pt,offset=3pt]{->}{3}{tl} \draw[halfedge](3)to(tl);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt]{->}{tl}{3} \draw[halfedge](tl)to(3);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{tl}{5} \draw[dashed,line width=0.5pt](tl)--(5);
\ncline[linewidth=0.5pt,offset=3pt]{->}{tl}{5} \draw[halfedge](tl)to(5);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{5}{tl} \draw[halfedge](5)to(tl);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{5}{tr} \draw[dashed,line width=0.5pt](5)--(tr);
\ncline[linewidth=0.5pt,offset=3pt]{->}{5}{tr} \draw[halfedge](5)to(tr);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{tr}{5} \draw[halfedge](tr)to(5);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{tr}{8} \draw[dashed,line width=0.5pt](tr)--(8);
\ncline[linewidth=0.5pt,offset=3pt]{->}{tr}{8} \draw[halfedge](tr)to(8);
\ncline[linewidth=0.5pt,offset=3pt,nodesepB=1pt]{->}{8}{tr} \draw[halfedge](8)to(tr);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{8}{7} \draw[dashed,line width=0.5pt](8)--(7);
\ncline[linewidth=0.5pt,offset=3pt]{->}{8}{7} \draw[halfedge](8)to(7);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=2pt]{->}{7}{8} \draw[halfedge,shorten >=1pt](7)to(8);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{7}{6} \draw[dashed,line width=0.5pt](7)--(6);
\ncline[linewidth=0.5pt,offset=3pt]{->}{7}{6} \draw[halfedge](7)to(6);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=3pt,nodesepB=1pt]{->}{6}{7} \draw[halfedge,shorten <=1.8pt](6)to(7);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{6}{br} \draw[dashed,line width=0.5pt](6)--(br);
\ncline[linewidth=0.5pt,offset=3pt]{->}{6}{br} \draw[halfedge](6)to(br);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt]{->}{br}{6} \draw[halfedge](br)to(6);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{br}{4} \draw[dashed,line width=0.5pt](br)--(4);
\ncline[linewidth=0.5pt,offset=3pt]{->}{br}{4} \draw[halfedge](br)to(4);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{4}{br} \draw[halfedge](4)to(br);
% %
\ncline[linestyle=dashed,linewidth=0.5pt]{4}{bl} \draw[dashed,line width=0.5pt](4)--(bl);
\ncline[linewidth=0.5pt,offset=3pt]{->}{4}{bl} \draw[halfedge](4)to(bl);
\ncline[linewidth=0.5pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{bl}{4} \draw[halfedge](bl)to(4);
% %
%\arredge{3}{10} \draw[edge](3)--(10);
\ncline[linewidth=0.5pt,linecolor=blue]{3}{10} \draw[halfedge](3)to(10);
\ncline[linewidth=0.25pt,offset=3pt]{->}{3}{10} \draw[halfedge,shorten <=11pt,shorten >=1.6pt](10)to(3);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=12pt,nodesepB=2pt]{->}{10}{3} \draw[edge](10)--(12);
%\arredge{10}{12} \draw[halfedge,shorten <=4pt](12)to(10);
\ncline[linewidth=0.5pt,linecolor=blue]{10}{12} \draw[halfedge,shorten <=10pt,shorten >=-1.8pt](10)to(12);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=6pt]{->}{12}{10} \draw[edge](12)--(11);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=16pt,nodesepB=-2pt]{->}{10}{12} \draw[halfedge](11)to(12);
%\arredge{12}{11} \draw[halfedge,shorten <=4.2pt,shorten >=1.2pt](12)to(11);
\ncline[linewidth=0.5pt,linecolor=blue]{12}{11} \draw[edge](11)--(6);
\ncline[linewidth=0.25pt,offset=3pt]{->}{11}{12} \draw[halfedge,shorten >=1.6pt](11)to(6);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=6pt,nodesepB=2pt]{->}{12}{11} \draw[halfedge,shorten >=1.6pt](6)to(11);
%\arredge{11}{6}
\ncline[linewidth=0.5pt,linecolor=blue]{11}{6}
\ncline[linewidth=0.25pt,offset=3pt,nodesepB=2pt]{->}{11}{6}
\ncline[linewidth=0.25pt,offset=3pt,nodesepB=2pt]{->}{6}{11}
%\arredge{1}{12} \draw[edge](1)--(12);
\ncline[linewidth=0.5pt,linecolor=blue]{1}{12} \draw[halfedge,shorten <=1.4pt,shorten >=4pt](1)to(12);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=2pt,nodesepB=5pt]{->}{1}{12} \draw[halfedge](12)to(1);
\ncline[linewidth=0.25pt,offset=3pt]{->}{12}{1} \draw[edge](12)--(9);
%\arredge{12}{9} \draw[halfedge,shorten >=11.6pt](12)to(9);
\ncline[linewidth=0.5pt,linecolor=blue]{12}{9} \draw[halfedge,shorten <=2pt,shorten >=3.6pt](9)to(12);
\ncline[linewidth=0.25pt,,offset=3pt,nodesepB=12pt]{->}{12}{9} \draw[edge](9)--(8);
\ncline[linewidth=0.25pt,,offset=3pt,nodesepA=2pt,nodesepB=5pt]{->}{9}{12} \draw[halfedge,shorten <=1.4pt](9)to(8);
%\arredge{9}{8} \draw[halfedge,shorten <=1.8pt,shorten >=11.8pt](8)to(9);
\ncline[linewidth=0.5pt,linecolor=blue]{9}{8}
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=2pt]{->}{9}{8}
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=2pt,nodesepB=12pt]{->}{8}{9}
\ncline[linewidth=0.5pt,linecolor=blue]{2}{10} \draw[edge](2)--(10);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=1pt,nodesepB=10pt]{->}{2}{10} \draw[halfedge,shorten >=10pt](2)to(10);
\ncline[linewidth=0.25pt,offset=3pt,nodesepB=1pt]{->}{10}{2} \draw[halfedge](10)to(2);
\ncline[linewidth=0.5pt,linecolor=blue]{10}{9} \draw[edge](10)--(9);
\ncline[linewidth=0.25pt,offset=3pt,nodesepB=1pt]{->}{10}{9} \draw[halfedge](10)to(9);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=16pt,nodesepB=10pt]{->}{9}{10} \draw[halfedge,shorten <=13pt,shorten >=9.4pt](9)to(10);
\ncline[linewidth=0.5pt,linecolor=blue]{9}{7} \draw[edge](9)--(7);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=16pt,nodesepB=1pt]{->}{9}{7} \draw[halfedge,shorten <=13pt](9)to(7);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{7}{9} \draw[halfedge](7)to(9);
\ncline[linewidth=0.5pt,linecolor=blue]{4}{11} \draw[edge](4)--(11);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=1pt]{->}{4}{11} \draw[halfedge](4)to(11);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=2pt,nodesepB=1pt]{->}{11}{4} \draw[halfedge,shorten <=2pt](11)to(4);
\ncline[linewidth=0.5pt,linecolor=blue]{11}{9} \draw[edge](11)--(9);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=1pt]{->}{9}{11} \draw[halfedge](9)to(11);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=2pt,nodesepB=2pt]{->}{11}{9} \draw[halfedge,shorten <=2pt,shorten >=1pt](11)to(9);
\ncline[linewidth=0.5pt,linecolor=blue]{9}{5} \draw[edge](9)--(5);
\ncline[linewidth=0.25pt,offset=3pt,nodesepA=1pt,nodesepB=1pt]{->}{9}{5} \draw[halfedge](9)to(5);
\ncline[linewidth=0.25pt,offset=3pt,,nodesepA=1pt,nodesepB=2pt]{->}{5}{9} \draw[halfedge,shorten >=1.2pt](5)to(9);
% %
\rput(2,6.5){$\tilde{f}$} \node at(2,6.5){$\tilde{f}$};
\rput(6.2,5.2){$f_1$} \node at(6.2,5.2){$f_1$};
\rput(8.5,4.4){$f_2$} \node at(8.5,4.4){$f_2$};
\rput(8.3,3.4){$f_3$} \node at(8.3,3.4){$f_3$};
\rput(6.2,2){$f_4$} \node at(6.2,2){$f_4$};
\rput(3.8,2){$f_5$} \node at(3.8,2){$f_5$};
\rput(1.7,3.4){$f_6$} \node at(1.7,3.4){$f_6$};
\rput(1.5,4.4){$f_7$} \node at(1.5,4.4){$f_7$};
\rput(3.8,5.2){$f_8$} \node at (3.8,5.2){$f_8$};
\end{pspicture} \end{tikzpicture}
}
\end{document} \end{document}