+
    )i                         ^ RI t^ RI HtHtHtHtHt ^ RIHt  ! R R]4      t	 ! R R]4      t
 ! R R	]4      t ! R
 R]4      t ! R R]4      tR t ! R R4      t]! 4       tR# )    N)DiGraphGraphMultiDiGraph
MultiGraphPlanarEmbedding)NodeViewc                       ] tR t^tRtRtR# )LoopbackGraphnx_loopback N__name__
__module____qualname____firstlineno____networkx_backend____static_attributes__r       g/var/www/html/photoedit/myenv/lib/python3.14/site-packages/networkx/classes/tests/dispatch_interface.pyr
   r
          (r   r
   c                       ] tR t^tRtRtR# )LoopbackDiGraphr   r   Nr   r   r   r   r   r      r   r   r   c                       ] tR t^tRtRtR# )LoopbackMultiGraphr   r   Nr   r   r   r   r   r      r   r   r   c                       ] tR t^tRtRtR# )LoopbackMultiDiGraphr   r   Nr   r   r   r   r   r      r   r   r   c                       ] tR t^"tRtRtR# )LoopbackPlanarEmbeddingr   r   Nr   r   r   r   r   r   "   r   r   r   c                 z   \        V \        4      '       d   \        V 4      # \        V \        4      '       d   \	        V 4      # \        V \
        4      '       d   \        V 4      # \        V \        4      '       d   \        V 4      # \        V \        4      '       d   \        V 4      # \        R \        V 4       24      h)zUnsupported type of graph: )
isinstancer   r   r   r   r   r   r   r   r   r
   	TypeErrortype)graphs   &r   convertr$   &   s    %))&u--%&&#E**%$$!%((%!!u%%%U##
1$u+?
@@r   c                      a  ] tR t^4t o R t]RR l4       t]RRRRRRRRRRR	RR
R/R l4       t]R	R/R l4       t]R 4       t	R t
RtV tR# )LoopbackBackendInterfacec                     \         P                  P                  P                  V,          P                  #   \
         d    \        T4      R hi ; iN)nxutilsbackends_registered_algorithms	orig_funcKeyErrorAttributeError)selfitems   &&r   __getattr__$LoopbackBackendInterface.__getattr__5   sD    	188$$;;DAKKK 	1 &D0	1s	   47 ANc                4    \         P                  \        4      # r(   )object__new__r
   )clsincoming_graph_dataattrs   &&,r   graph__new__%LoopbackBackendInterface.graph__new__;   s    
 ~~m,,r   
edge_attrs
node_attrspreserve_edge_attrspreserve_node_attrspreserve_graph_attrsname
graph_namec          
     T  a aaaaaa VR9   d   S # \        S \        4      '       d8   \        4       pVP                  S P	                  4       4       Vo \        4       oEM\        S \        4      '       g   \        RV RV R\        S 4       24      hS P                  \        \
        09   d   \        4       oMS P                  \        \        09   d   \        4       oMS P                  \        \        09   d   \        4       oM\S P                  \        \        09   d   \        4       oM6S P                  \        \         09   d   \        4       oMS P                  4       oV'       d&   SP"                  P%                  S P"                  4       SP                  S 4       V'       dH   SP&                  P	                  4        F(  w  op	V	P%                  S P(                  S,          4       K*  	  MVV'       dO   SP&                  P	                  4        F0  w  op	V	P%                  V V3R lVP	                  4        4       4       K2  	  V'       d   V3R loMS'       d	   VV3R loMV3R loSP+                  4       '       d	   VV3R loMSoSP,                  oSP/                  4       '       d   S P,                  P	                  4        F6  w  op
SS,          P%                  V3R	 lV
P	                  4        4       4       K8  	  SP0                  pS P0                  P	                  4        F)  w  op
VS,          P%                  VV3R
 lV
 4       4       K+  	  S# S P,                  P	                  4        F8  w  op
SS,          P%                  VVV3R lV
P	                  4        4       4       K:  	  S# ) lexicographical_topological_sortzBad type for graph argument z in z: c              3      <"   T FI  w  rVf   VSP                   S,          9   g   K#  VSP                   S,          P                  W4      3x  KK  	  R # 5ir(   )_nodeget).0r9   defaultr#   ns   &  r   	<genexpr>;LoopbackBackendInterface.convert_from_nx.<locals>.<genexpr>{   sI      );*dekk!n.D >T5;;q>--d<=);s
    A,Ac                 &   < SP                  V 4      # r(   edge_attr_dict_factoryold_ddGs   &r   G_new_datadict@LoopbackBackendInterface.convert_from_nx.<locals>.G_new_datadict   s    //77r   c                 X   <a  SP                  V 3R  lSP                  4        4       4      # )c              3   h   <"   T F'  w  rVf
   VS9   g   K  VSP                  W4      3x  K)  	  R # 5ir(   )rG   )rH   r9   rI   rQ   s   &  r   rK   SLoopbackBackendInterface.convert_from_nx.<locals>.G_new_datadict.<locals>.<genexpr>   s6      0);*dfn 6T6::d45);s   22)rO   items)rQ   rR   r<   s   fr   rS   rT      s,    // 0)3)9)9);0  r   c                 $   < SP                  4       # r(   rN   rP   s   &r   rS   rT      s    //11r   c                 Z   < SP                  V3R  lV P                  4        4       4      pV# )c              3   <   <"   T F  w  rVS! V4      3x  K  	  R # 5ir(   r   )rH   kddrS   s   &  r   rK   PLoopbackBackendInterface.convert_from_nx.<locals>.G_new_inner.<locals>.<genexpr>   s       29HQr*+   )adjlist_inner_dict_factoryrX   )keydictkdrR   rS   s   & r   G_new_inner=LoopbackBackendInterface.convert_from_nx.<locals>.G_new_inner   s-    11 29@2  	r   c              3   <   <"   T F  w  rVS! V4      3x  K  	  R # 5ir(   r   )rH   nbrr]   rc   s   &  r   rK   rL      s     Sl73k"o 6lr_   c              3   F   <"   T F  qSV,          S,          3x  K  	  R # 5ir(   r   )rH   rf   G_adjrJ   s   & r   rK   rL      s      F#uSz!}!5s   !c              3   x   <"   T F/  w  rTSSV,          9   d   SV,          S,          MS! V4      3x  K1  	  R # 5ir(   r   )rH   rf   r]   rh   rc   rJ   s   &  r   rK   rL      s7       #/ 1c
?%*Q-BP#/s   7:>   topological_sorttopological_generationsrD   )r    r   r   add_nodes_fromrX   r
   r!   r"   	__class__r   r   r   r   r   r   r   r   r#   updaterF   nodesis_multigraph_adjis_directed_pred)r#   r<   r=   r>   r?   r@   rA   rB   	new_graphr]   nbrsG_predrR   rh   rS   rc   rJ   s   fd$$$$$$    @@@@@r   convert_from_nx(LoopbackBackendInterface.convert_from_nxB   s     
 
 LeX&&I$$U[[]3EAE5)).zl$tfBtE{mT  __ 66A__/ ::!A__-? @@"$A__/C DD$&A__2I JJ!A !AGGNN5;;' 	
2		%++a.) )2		 )3)9)9);  ) 82 ?? )K ==?? ::++-4aSdjjlSS . WWF ;;,,.4q	   F FF /  !::++-4a  #'::<   . r   c                   V # r(   r   )objrA   s   &$r   convert_to_nx&LoopbackBackendInterface.convert_to_nx   s    
r   c                @    V  F  p\        VR 4      '       d   K  Q h	  R# )
add_markerNhasattr)rX   r1   s   & r   on_start_tests'LoopbackBackendInterface.on_start_tests   s!     D4.... r   c                    \        W4      # r(   r   )r0   rA   argskwargss   &&&&r   can_run LoopbackBackendInterface.can_run   s     t""r   r   r(   )r   r   r   r   r2   staticmethodr:   rw   r{   r   r   r   __classdictcell__)__classdict__s   @r   r&   r&   4   s     1 - - k k 	k
 !k !k "k k k kZ 4   / /
# #r   r&   )networkxr)   r   r   r   r   r   networkx.classes.reportviewsr   r
   r   r   r   r   r$   r&   backend_interfacer   r   r   <module>r      sm     N N 1)E ))g )) ))< ))o )AI# I#X -. r   