+
    )i!                     n    ^ RI t ^ RItR tR tR t]P                  3R lt]P                  3R ltR t	R# )    Nc                     \         P                  ! ^\         P                  R7      p V  Uu/ uF  qW3bK  	  ppV P                  ^ ^ 4       RV P                  R,          R&   RV P                  R,          R&   RV P
                  ^ ,          R&   RV P
                  ^,          R&   R	V P
                  ^,          R&   R
V P
                  ^,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   RV P                  R,          R&   \         P                  ! V VRRRRRRRR7	      pRp\        VP                  R4      VP                  R4      4       F  w  rVWV8X  d   K  Q h	  W48X  g   Q hR# u upi )   create_usingLooplabelmidwaylabel_optionsbluestylezline width=3,drawzcircle,draw,blue!50Stopz1st Stepznear endz3rd Stepz
near startzbend left,green2ndzpos=0.5z$>->,bend right,line width=3,green!90Fz	[scale=3])posas_documenttikz_optionsnode_optionsedge_options
node_label
edge_labeledge_label_optionsa(  \begin{figure}
  \begin{tikzpicture}[scale=3]
      \draw
        (0, 0) node[blue] (0){0}
        (1, 1) node[line width=3,draw] (1){1}
        (2, 2) node[circle,draw,blue!50] (2){2}
        (3, 3) node (3){Stop};
      \begin{scope}[->]
        \draw (0) to node[near end] {1st Step} (1);
        \draw[loop,] (0) to node[midway] {Loop} (0);
        \draw[>->,bend right,line width=3,green!90] (1) to node[pos=0.5] {2nd} (2);
        \draw[bend left,green] (2) to node[near start] {3rd Step} (3);
      \end{scope}
    \end{tikzpicture}
\end{figure}
N)r   r   r      )      r   r   )	nx
path_graphDiGraphadd_edgeedgesnodesto_latexzipsplit)Gnr   
output_texexpected_texexpectedactuals          _/var/www/html/photoedit/myenv/lib/python3.14/site-packages/networkx/drawing/tests/test_latex.pytest_tikz_attributesr-      s   
abjj1A
 aqf9aC
 JJq!%AGGFOG'/AGGFOO$ AGGAJw-AGGAJw/AGGAJw AGGAJw)AGGFOG'1AGGFOO$)AGGFOG'3AGGFOO$0AGGFOG$AGGFOG'0AGGFOO$EAGGFOG	 *
JL$   2 24 8*:J:J4:PQ!!! R %%%g !s   G%c                     \         P                  ! ^4      p \         P                  ! ^4      p\         P                  ! ^4      p\         P                  ! ^4      p. ROp. R	Op\         P                  ! WW#.^VVR7      pRV9   g   Q hRV9   g   Q hVP	                  R4      ^8X  g   Q hVP	                  R4      ^8X  g   Q hVP	                  R4      ^8X  g   Q hR# )
r   )n_rowssub_captions
sub_labelszbegin{document}zbegin{figure}zbegin{subfigure}tikzpicturez[-]N)zPath on 4 nodeszComplete graph on 4 nodeszPath on 8 nodeszComplete graph on 8 nodes)fig2afig2bfig2cfig2d)r   r   complete_graphr#   count)H1H2H3H4captionslabels
latex_codes          r,   test_basic_multiple_graphsr@   >   s    	q	B			1	B	q	B			1	BH 2F		J 
***j(((./1444M*a///E"a'''    c                  6   R p . ROp\         P                  ! 4       pVP                  \        ^4      4       VP	                  V4       ^ R^R^R^R^R^R^R^R/p^ R^R^R^R/p^ R^R^R^R/pVP                  4       p\         P                  ! W$R4       \         P                  ! WeR4       RR.pRR	.p\         P                  ! W&.W3.R
RRRVVR^RR7      p	\        V P                  R4      V	P                  R4      4       F  w  rW8X  d   K  Q h	  W8X  g   Q hR# )aF  \documentclass{report}
\usepackage{tikz}
\usepackage{subcaption}

\begin{document}
\begin{figure}
  \begin{subfigure}{0.5\textwidth}
  \begin{tikzpicture}[scale=2]
      \draw[gray!90]
        (0.749, 0.702) node[red!90] (0){0}
        (1.0, -0.014) node[red!90] (1){1}
        (-0.777, -0.705) node (2){2}
        (-0.984, 0.042) node (3){3}
        (-0.028, 0.375) node[cyan!90] (4){4}
        (-0.412, 0.888) node (5){5}
        (0.448, -0.856) node (6){6}
        (0.003, -0.431) node[cyan!90] (7){7};
      \begin{scope}[->,gray!90]
        \draw (0) to (4);
        \draw (0) to (5);
        \draw (0) to (6);
        \draw (0) to (7);
        \draw (1) to (4);
        \draw (1) to (5);
        \draw (1) to (6);
        \draw (1) to (7);
        \draw (2) to (4);
        \draw (2) to (5);
        \draw (2) to (6);
        \draw (2) to (7);
        \draw (3) to (4);
        \draw (3) to (5);
        \draw (3) to (6);
        \draw (3) to (7);
      \end{scope}
    \end{tikzpicture}
    \caption{My tikz number 1 of 2}\label{tikz_1_2}
  \end{subfigure}
  \begin{subfigure}{0.5\textwidth}
  \begin{tikzpicture}[scale=2]
      \draw[gray!90]
        (0.749, 0.702) node[green!90] (0){0}
        (1.0, -0.014) node[green!90] (1){1}
        (-0.777, -0.705) node (2){2}
        (-0.984, 0.042) node (3){3}
        (-0.028, 0.375) node[purple!90] (4){4}
        (-0.412, 0.888) node (5){5}
        (0.448, -0.856) node (6){6}
        (0.003, -0.431) node[purple!90] (7){7};
      \begin{scope}[->,gray!90]
        \draw (0) to (4);
        \draw (0) to (5);
        \draw (0) to (6);
        \draw (0) to (7);
        \draw (1) to (4);
        \draw (1) to (5);
        \draw (1) to (6);
        \draw (1) to (7);
        \draw (2) to (4);
        \draw (2) to (5);
        \draw (2) to (6);
        \draw (2) to (7);
        \draw (3) to (4);
        \draw (3) to (5);
        \draw (3) to (6);
        \draw (3) to (7);
      \end{scope}
    \end{tikzpicture}
    \caption{My tikz number 2 of 2}\label{tikz_2_2}
  \end{subfigure}
  \caption{A graph generated with python and latex.}
\end{figure}
\end{document}zred!90zcyan!90zgreen!90z	purple!90colorzMy tikz number 1 of 2zMy tikz number 2 of 2tikz_1_2tikz_2_2z	[scale=2]zgray!90z(A graph generated with python and latex.T)	r   default_node_optionsdefault_edge_optionsr   r0   r1   captionr/   r   r   N))r   r   )r      )r      )r      )r   r   )r   rI   )r   rJ   )r   rK   )r   r   )r   rI   )r   rJ   )r   rK   )r   r   )r   rI   )r   rJ   )r   rK   )g`5?g'y?)g      ?gMR )g/κg	ƒ)gw!g^c?)g͛YgI1?)gDQVڿg]]Pj?)gGgǨ?g'e)g@j?g+?Cۿ)
r   r   add_nodes_fromrangeadd_edges_fromcopyset_node_attributesr#   r$   r%   )r)   r!   r&   r   rc_node_colorgp_node_colorHr0   r1   r(   r*   r+   s               r,   test_basic_tikzrT   W   s^   HLTE$ 	

AU1XU	2	'	5	5	5	5	5	8	C !Xq)Q	JM
Az1k1kRM	A1W51W5+-DELj)J	
	
 &&!:J    2 24 8*:J:J4:PQ!!! R %%%rA   c                 d   \         P                  ! ^4      pV ! VRR7       ^ R^R^R/p\        P                  ! \         P                  4      ;_uu_ 4        V ! W4       RRR4       RV^&   \        P                  ! \         P                  4      ;_uu_ 4        V ! W4       RRR4       ^V^&   \        P                  ! \         P                  4      ;_uu_ 4        V ! W4       RRR4       RV^&   V ! W4       R#   + '       g   i     L; i  + '       g   i     Lt; i  + '       g   i     LE; i)	r   r   )r   Nr   r   r   r   )r   r   r   )r   r   r   r   pytestraisesNetworkXError)r#   r&   r   s   &  r,   test_exception_pos_single_graphr[      s    
aAQE faF
+C	r''	(	( 
) CF	r''	(	( 
)CF	r''	(	( 
) CFQ 
)	(
 
)	( 
)	(s$   	C9	D	D9D		D	D/	c           	         \         P                  ! ^4      p^ R^R/p^ R^R^R	/pWW.pW3W3.pV ! WC4       \        P                  ! \         P                  4      ;_uu_ 4        V ! WB4       RRR4       V ! WE4       \        P                  ! \         P                  4      ;_uu_ 4        V ! WBW"V.4       RRR4       \        P                  ! \         P                  4      ;_uu_ 4        V ! WCW2V.4       RRR4       \        P                  ! \         P                  4      ;_uu_ 4        V ! WERR.R7       RRR4       \        P                  ! \         P                  4      ;_uu_ 4        V ! WERR.R7       RRR4       V ! WER.^,          R.^,          R7       R#   + '       g   i     EL8; i  + '       g   i     EL; i  + '       g   i     L; i  + '       g   i     L; i  + '       g   i     L{; i)
r   Nhi)r0   )r1   lbl)r0   r1   r   r   rV   rW   )r#   r&   pos_badpos_OKfourGfourposs   &     r,   test_exception_multiple_graphsrc      sn   
aA&!V$GFAv.F1LEv.G U	r''	(	(  
) U	r''	(	('G<= 
) 
r''	(	(&9: 
) 
r''	(	(tTl; 
) 
r''	(	(T4L9 
) U4&1*%1M) 
)	(	(
 
)	(	( 
)	( 
)	( 
)	(s<   !	F&F-&G&G'G'F*	-F>	G	G$	'G7	c                  4   \         P                  ! ^\         P                  R7      p V P                  ^^4       \        P
                  ! \         P                  4      ;_uu_ 4        \         P                  ! V 4       RRR4       R#   + '       g   i     R# ; i)r   r   N)r   r   
MultiGraphr    rX   rY   NetworkXNotImplementedr#   )r&   s    r,   test_exception_multigraphrg     sS    
abmm4AJJq!	r00	1	1
A 
2	1	1	1s   %BB	)
rX   networkxr   r-   r@   rT   r#   r[   rc   rg    rA   r,   <module>rj      s@     5&p(2H&V .0[[ . -/KK N@rA   