\chapter{گراف}
 


برای رسم گراف به بسته tkz-graph  نیاز دارید.  این بسته در Texlive2020 وجود ندارد. اما در Texlive کمتر از 2020 می‌تواید این بسته را فراخوانی کنید: 
 لذا باید درصد زیر را در فایل Thesis  بردارید:

\begin{latin}
\begin{lstlisting}[frame=trBL, 	 backgroundcolor=\color{gray!4}]


\input{GUILAN_style.cls}
%\ usepackage{tkz-graph}}
\end{lstlisting}
\end{latin}
تا بسته  tkz-graph فراخوانی شود. 
\begin{latin}
\begin{lstlisting}[frame=trBL, 	 backgroundcolor=\color{gray!4}]



\input{GUILAN_style.cls}
\usepackage{tkz-graph} 
\end{lstlisting}
\end{latin}
\begin{tikzpicture}[scale=1.75]
\GraphInit[vstyle=Art]
\Vertex{A}
\Vertex[x=4,y=0]{B}
\Vertex[x=1,y=2]{C}
\Edge[style={bend left}](B)(A)
\Edges(A,B,C,A)
\end{tikzpicture}


\begin{tikzpicture}
\SetVertexNormal[Shape = circle,
FillColor = orange,
LineWidth = 2pt]
\SetUpEdge[lw = 1.5pt,
color = black,
labelcolor = white,
labeltext = red,
labelstyle = {sloped,draw,text=blue}]
\Vertex[x=0 ,y=0]{K}
\Vertex[x=0 ,y=2]{F}
\Vertex[x=-1,y=4]{D}
\Vertex[x=3 ,y=7]{H}
\Vertex[x=8 ,y=5]{B}
\Vertex[x=9 ,y=2]{N}
\Vertex[x=5 ,y=0]{M}
\Vertex[x=3 ,y=1]{S}
\tikzset{EdgeStyle/.append style = {bend left}}
\Edge[label = $120$](K)(F)
\Edge[label = $650$](H)(S)
\Edge[label = $780$](H)(M)
\Edge[label = $490$](D)(B)
\Edge[label = $600$](D)(M)
\Edge[label = $580$](B)(M)
\Edge[label = $600$](H)(N)
\Edge[label = $490$](F)(H)
\tikzset{EdgeStyle/.append style = {bend right}}
\Edge[label = $630$](S)(B)
\Edge[label = $210$](S)(N)
\Edge[label = $230$](S)(M)
\end{tikzpicture}

\begin{tikzpicture}
\GraphInit[vstyle=Shade]
\SetGraphUnit{3}
\Vertex{e}
\NOEA(e){f}\SOEA(e){d}
\SOEA(f){h}\NOWE(f){g}
\WE(g){c} \SOWE(e){a} \SOWE(c){b}
\tikzstyle{LabelStyle}=[fill=white]
\tikzstyle{EdgeStyle}=[color=red]
\Edge[label=$3$](a)(b)
\Edge[label=$11$](a)(c)
\Edge[label=$6$](a)(e)
\Edge[label=$17$](a)(d)
\Edge[style={pos=.25},label=$20$](a)(g)
\Edge[label=$5$](c)(b)
\Edge[label=$6$](c)(e)
\Edge[label=$7$](c)(g)
\Edge[label=$7$](f)(e)
\Edge[label=$3$](d)(e)
\Edge[label=$9$](d)(h)
\Edge[label=$6$](g)(e)
\Edge[style={bend left,out=45,in=135},label=$11$](g)(h)
\Edge[label=$4$](f)(h)
\end{tikzpicture}


\begin{tikzpicture}
\SetUpEdge[lw = 1.5pt,
color = orange,
labelcolor = gray!30,
labelstyle = {draw}]
\SetGraphUnit{3}
\GraphInit[vstyle=Normal]
\Vertex{P}
\NOEA(P){B}
\SOEA(P){M}
\NOEA(B){D}
\SOEA(B){C}
\SOEA(C){L}
\tikzset{EdgeStyle/.style={->}}
\Edge[label=$3$](C)(B)
\Edge[label=$10$](D)(B)
\Edge[label=$10$](L)(M)
\Edge[label=$10$](B)(P)
\tikzset{EdgeStyle/.style={<->}}
\Edge[label=$4$](P)(M)
\Edge[label=$9$](C)(M)
\Edge[label=$4$](C)(L)
\Edge[label=$5$](C)(D)
\Edge[label=$10$](B)(M)
\tikzset{EdgeStyle/.style={<->,relative=false,in=0,out=60}}
\Edge[label=$11$](L)(D)
\end{tikzpicture}
 