+
    �°³js1  ã                   ó  € R t ^ RIt^ RIt^ RIHt . ROtRR ltRR	 ltR
tR t	]! ]	R4      t
R t]]	n         ]P                  RR4      ]
n         ]P                  RR4      t]P                  RR4      t]]n         RtRR lt]! ]R4      tRR lt]]n         ]P                  RR4      ]n         ]P                  RR4      t]P                  RR4      t]]n         RtR t]! ]R4      tR t]]n         ]P                  RR4      ]n         R# )zvFunctions which help end users define customize node_match and
edge_match functions to use during isomorphism checks.
N)ÚpermutationsÚcategorical_edge_matchÚcategorical_multiedge_matchÚnumerical_edge_matchÚnumerical_multiedge_matchÚgeneric_edge_matchc                ó®   € \         P                  ! V P                  V P                  T;'       g    V P                  V P
                  V P                  4      # )z!Returns a deepcopy of a function.)ÚtypesÚFunctionTypeÚ__code__Ú__globals__Ú__name__Ú__defaults__Ú__closure__)ÚfÚnames   &&Úm/home/luca/screen-checking/.venv/lib/python3.14/site-packages/networkx/algorithms/isomorphism/matchhelpers.pyÚcopyfuncr      s<   € ä×ÒØ	�
‰
�A—M‘M 4×#5Ð#5¨1¯:©:°q·~±~ÀqÇ}Á}óð ó    c                ó¢   aa€ \         ;QJ d)    VV3R l\        W4       4       F  '       d   K   R# 	  R# ! VV3R l\        W4       4       4      # )z³Returns True if x and y are sufficiently close, elementwise.

Parameters
----------
rtol : float
    The relative error tolerance.
atol : float
    The absolute error tolerance.

c              3   óZ   <"  € T F   w  r\         P                  ! WSSR 7      x € K"  	  R# 5i)©Úrel_tolÚabs_tolN)ÚmathÚisclose)Ú.0ÚxiÚyiÚatolÚrtols   &  €€r   Ú	<genexpr>Úallclose.<locals>.<genexpr>)   s#   øé € ÐXÉiÁFÀBŒt�|Š|˜B¨D¸$×?Ñ?Ëiùs   ƒ(+FT)ÚallÚzip)ÚxÚyr    r   s   &&ffr   Úallcloser'      s8   ù€ ÷ ‹3ÕXÌcÐRSÌiÓX�3Œ3ÐXŠ3ÐXˆ3ÕXÌcÐRSÌiÓXÓXÐXr   as  
Returns a comparison function for a categorical node attribute.

The value(s) of the attr(s) must be hashable and comparable via the ==
operator since they are placed into a set([]) object.  If the sets from
G1 and G2 are the same, then the constructed function returns True.

Parameters
----------
attr : string | list
    The name of the categorical node attribute to compare, or a list of categorical
    node attributes to compare.
default : value | list
    When `attr` is a string, the default value for that categorical node attribute.
    Otherwise, a list of default values for each node attributes.

Returns
-------
match : function
    The customized, categorical `node_match` function.

Examples
--------
>>> import networkx.algorithms.isomorphism as iso
>>> nm = iso.categorical_node_match("size", 1)
>>> nm = iso.categorical_node_match(["color", "size"], ["red", 2])

c                 óâ   a aa€ \        S \        4      '       d
   V V3R  lpV# \        S\        4      '       d   \        \        S SRR7      4      oMS  Uu. uF  q3S3NK  	  upoV3R lpV# u upi )c                 óN   <€ V P                  SS4      VP                  SS4      8H  # ©N©Úget)Údata1Údata2ÚattrÚdefaults   &&€€r   ÚmatchÚ%categorical_node_match.<locals>.matchM   s$   ø€ Ø—9‘9˜T 7Ó+¨u¯y©y¸¸wÓ/GÑGÐGr   T©Ústrictc                 ó€   <a a€ \         ;QJ d     V V3R  lS 4       F  '       d   K   R# 	  R# ! V V3R  lS 4       4      # )c              3   ón   <"  € T F*  w  rSP                  W4      SP                  W4      8H  x € K,  	  R # 5ir*   r+   )r   r/   Údr-   r.   s   &  €€r   r!   Ú8categorical_node_match.<locals>.match.<locals>.<genexpr>W   s*   øé € ÐUÉuÁGÀD�u—y‘y Ó)¨U¯Y©Y°tÓ-?Ö?Ëuùs   ƒ25FT)r#   )r-   r.   Úattrss   ff€r   r1   r2   V   s,   ú€ ß“3ÕUÉuÓU—3”3ÐU’3ÐU�3ÕUÉuÓUÓUÐUr   ©Ú
isinstanceÚstrÚlistr$   ©r/   r0   r1   Úar9   s   ff  @r   Úcategorical_node_matchr@   J   sg   ú€ Ü�$œ×Òö	Hð €Lô �gœt×$Ò$Üœ˜T 7°4Ô8Ó9‰Eá+/Ó0©4 a˜“\©4Ñ0ˆEõ	Vð €Lùò 1ó   ÁA,c                 óâ   a aa€ \        S \        4      '       d
   V V3R  lpV# \        S\        4      '       d   \        \        S SRR7      4      oMS  Uu. uF  q3S3NK  	  upoV3R lpV# u upi )c                 óØ   <€ V P                  4        Uu0 uF  q"P                  SS4      kK  	  ppVP                  4        Uu0 uF  q"P                  SS4      kK  	  ppW48H  # u upi u upi r*   )Úvaluesr,   )Ú	datasets1Ú	datasets2ÚdataÚvalues1Úvalues2r/   r0   s   &&   €€r   r1   Ú*categorical_multiedge_match.<locals>.matchb   se   ø€ Ø;D×;KÑ;KÔ;MÓNÑ;M°4—x‘x  gÖ.Ñ;MˆGÐNØ;D×;KÑ;KÔ;MÓNÑ;M°4—x‘x  gÖ.Ñ;MˆGÐNØÑ%Ð%ùò OùÚNs   ”A"ÁA'Tr3   c                 ó   <aa€ \        4       pV P                  4        FF  o\        ;QJ d    . V3R  lS 4       F  NK  	  5M! V3R  lS 4       4      pVP                  V4       KH  	  \        4       pVP                  4        FF  o\        ;QJ d    . V3R lS 4       F  NK  	  5M! V3R lS 4       4      pVP                  V4       KH  	  W$8H  # )c              3   óJ   <"  € T F  w  rSP                  W4      x € K  	  R # 5ir*   r+   ©r   r/   r7   r-   s   &  €r   r!   Ú=categorical_multiedge_match.<locals>.match.<locals>.<genexpr>p   ó   øé € ÐB¹E±°˜%Ÿ)™) D×,Ð,»Eùó   ƒ #c              3   óJ   <"  € T F  w  rSP                  W4      x € K  	  R # 5ir*   r+   ©r   r/   r7   r.   s   &  €r   r!   rN   t   rO   rP   )ÚsetrD   ÚtupleÚadd)rE   rF   rH   r%   rI   r-   r.   r9   s   &&   @@€r   r1   rJ   m   s–   ú€ Ü“eˆGØ"×)Ñ)Ö+�ß”EÔB¹EÓB—E‘EÔB¹EÓBÓB�Ø—‘˜A–ñ ,ô “eˆGØ"×)Ñ)Ö+�ß”EÔB¹EÓB—E‘EÔB¹EÓBÓB�Ø—‘˜A–ñ ,ð Ñ%Ð%r   r:   r>   s   ff  @r   r   r   _   se   ú€ Ü�$œ×Òö	&ð, €Lô! �gœt×$Ò$Üœ˜T 7°4Ô8Ó9‰Eá+/Ó0©4 a˜“\©4Ñ0ˆEõ		&ð €Lùò 1rA   ÚnodeÚedgeaÂ  
Returns a comparison function for a numerical node attribute.

The value(s) of the attr(s) must be numerical and sortable.  If the
sorted list of values from G1 and G2 are the same within some
tolerance, then the constructed function returns True.

Parameters
----------
attr : string | list
    The name of the numerical node attribute to compare, or a list of numerical
    node attributes to compare.
default : value | list
    If `attr` is a string, the default numerical value for that attribute.
    Otherwise, a list of same length as `attr` with default values for each attribute.
rtol : float
    The relative error tolerance.
atol : float
    The absolute error tolerance.

Returns
-------
match : function
    The customized, numerical `node_match` function.

Examples
--------
>>> import networkx.algorithms.isomorphism as iso
>>> nm = iso.numerical_node_match("weight", 1.0)
>>> nm = iso.numerical_node_match(["weight", "linewidth"], [0.25, 0.5])

c                 óî   a aaaa€ \        S \        4      '       d   VV VV3R  lpV# \        S\        4      '       d   \        \        S SRR7      4      oMS  Uu. uF  qUS3NK  	  upoVVV3R lpV# u upi )c                 óx   <€ \         P                  ! V P                  SS4      VP                  SS4      SSR 7      # )r   )r   r   r,   )r-   r.   r   r/   r0   r    s   &&€€€€r   r1   Ú#numerical_node_match.<locals>.match¨   s6   ø€ Ü—<’<Ø—	‘	˜$ Ó(Ø—	‘	˜$ Ó(ØØô	ð r   Tr3   c                 óÈ   <€ S UUu. uF  w  r#V P                  W#4      NK  	  pppS UUu. uF  w  r#VP                  W#4      NK  	  ppp\        WESSR 7      # u uppi u uppi )©r    r   )r,   r'   )	r-   r.   r/   r7   rH   rI   r   r9   r    s	   &&    €€€r   r1   rZ   ¶   sY   ø€ Ù9>Ô?¹©g¨d�u—y‘y Ö)¹ˆGÑ?Ù9>Ô?¹©g¨d�u—y‘y Ö)¹ˆGÑ?Ü˜G°4¸dÔCÐCùó @ùÛ?s
   ‡A«Ar:   ©r/   r0   r    r   r1   r?   r9   s   ffff  @r   Únumerical_node_matchr^   ¥   sk   ü€ Ü�$œ×Ò÷	ð 	ð& €Lô �gœt×$Ò$Üœ˜T 7°4Ô8Ó9‰Eá+/Ó0©4 a˜“\©4Ñ0ˆE÷	Dð
 €Lùò 1ó   ÁA2c                 óî   a aaaa€ \        S \        4      '       d   VV VV3R  lpV# \        S\        4      '       d   \        \        S SRR7      4      oMS  Uu. uF  qUS3NK  	  upoVVV3R lpV# u upi )c                 ó°   <€ \        VV3R  lV P                  4        4       4      p\        VV3R lVP                  4        4       4      p\        W#SSR7      # )c              3   óF   <"  € T F  qP                  SS4      x € K  	  R # 5ir*   r+   ©r   rG   r/   r0   s   & €€r   r!   Ú;numerical_multiedge_match.<locals>.match.<locals>.<genexpr>Å   ó   øé € ÐTÑAS¸ŸX™X d¨G×4Ð4ÓASùó   ƒ!c              3   óF   <"  € T F  qP                  SS4      x € K  	  R # 5ir*   r+   rc   s   & €€r   r!   rd   Æ   re   rf   r\   )ÚsortedrD   r'   )rE   rF   rH   rI   r   r/   r0   r    s   &&  €€€€r   r1   Ú(numerical_multiedge_match.<locals>.matchÄ   sD   ø€ ÜÕTÀ×AQÑAQÔASÓTÓTˆGÜÕTÀ×AQÑAQÔASÓTÓTˆGÜ˜G°4¸dÔCÐCr   Tr3   c                 ó  <aa€ . pV P                  4        FF  o\        ;QJ d    . V3R  lS
 4       F  NK  	  5M! V3R  lS
 4       4      pVP                  V4       KH  	  . pVP                  4        FF  o\        ;QJ d    . V3R lS
 4       F  NK  	  5M! V3R lS
 4       4      pVP                  V4       KH  	  VP                  4        VP                  4        \	        W$4       F  w  rV\        WVSS	R7      '       d   K   R# 	  R# )c              3   óJ   <"  € T F  w  rSP                  W4      x € K  	  R # 5ir*   r+   rM   s   &  €r   r!   rd   Ò   rO   rP   c              3   óJ   <"  € T F  w  rSP                  W4      x € K  	  R # 5ir*   r+   rR   s   &  €r   r!   rd   Ö   rO   rP   r\   FT)rD   rT   ÚappendÚsortr$   r'   )rE   rF   rH   r%   rI   r   r   r-   r.   r   r9   r    s   &&     @@€€€r   r1   ri   Ï   sÅ   ú€ ØˆGØ"×)Ñ)Ö+�ß”EÔB¹EÓB—E‘EÔB¹EÓBÓB�Ø—‘˜qÖ!ñ ,ð ˆGØ"×)Ñ)Ö+�ß”EÔB¹EÓB—E‘EÔB¹EÓBÓB�Ø—‘˜qÖ!ñ ,ð �L‰LŒNØ�L‰LŒNÜ˜gÖ/‘�Ü ¨T¸×=Õ=Ú ñ 0ñ r   r:   r]   s   ffff  @r   r   r   Á   sl   ü€ Ü�$œ×Ò÷	Dð 	Dð8 €Lô- �gœt×$Ò$Üœ˜T 7°4Ô8Ó9‰Eá+/Ó0©4 a˜“\©4Ñ0ˆE÷	ð" €Lùò' 1r_   aP  
Returns a comparison function for a generic attribute.

The value(s) of the attr(s) are compared using the specified
operators. If all the attributes are equal, then the constructed
function returns True.

Parameters
----------
attr : string | list
    The node attribute to compare, or a list of node attributes
    to compare.
default : value | list
    When `attr` is a string, the default value for that attribute.
    Otherwise, a list the same length as `attr` with default values for each attribute.
op : callable | list
    When `attr` is a string, the operator to use when comparing attribute values.
    Otherwise, a list the same length as `attr` with operators to for each attribute.

Returns
-------
match : function
    The customized, generic `node_match` function.

Examples
--------
>>> from operator import eq
>>> from math import isclose
>>> from networkx.algorithms.isomorphism import generic_node_match
>>> nm = generic_node_match("weight", 1.0, isclose)
>>> nm = generic_node_match("color", "red", eq)
>>> nm = generic_node_match(["weight", "color"], [1.0, "red"], [isclose, eq])

c           	      óð  a aaa€ \        S \        4      '       d   V VV3R  lpV# \        S\        4      '       dU   \        S\        4      '       d   \        \        S SSRR7      4      oMu\        S SRR7       UUu. uF	  w  rEWES3NK  	  uppoMP\        S\        4      '       d'   \        S SRR7       UUu. uF
  w  rFVSV3NK  	  uppoMS  Uu. uF  qDSS3NK	  	  upoV3R lpV# u uppi u uppi u upi )c                 óV   <€ S! V P                  SS4      VP                  SS4      4      # r*   r+   )r-   r.   r/   r0   Úops   &&€€€r   r1   Ú!generic_node_match.<locals>.match  s&   ø€ Ù�e—i‘i  gÓ.°·	±	¸$ÀÓ0HÓIÐIr   Tr3   c                 ó€   <€ S F6  w  r#pV! V P                  W#4      VP                  W#4      4      '       d   K5   R # 	  R# )FTr+   )r-   r.   r/   r7   Úoperatorr9   s   &&   €r   r1   rr   !  s9   ø€ Û%*Ñ!�˜Ù §	¡	¨$Ó 2°E·I±I¸dÓ4F×GÔGÚ ñ &+ñ r   r:   )r/   r0   rq   r1   r?   r7   Úor9   s   fff    @r   Úgeneric_node_matchrv     sÛ   û€ Ü�$œ×Ò÷	Jð, €Lô% �gœt×$Ò$Ü˜"œd×#Ò#ÜœS  w°¸4Ô@ÓA‘ä03°D¸'È$Õ0OÔPÑ0O©¨˜! ›Ñ0OÒP‘ä˜"œd×#Ò#Ü58¸¸rÈ$Õ5OÔPÑ5O©T¨Q˜!˜W a›Ñ5OÒP‘á37Ó8±4¨a˜W bÓ)±4Ñ8�õ	ð €Lùó Qùó Qùâ8s   Á;C'Â6C-ÃC3c                ó²  aa€ \        V \        4      '       d   V .p V.p\        V\        4      '       d   \        \        WRR7      4      oMV  Uu. uF  q3V3NK  	  upo\        V\        4      '       dD   \	        V4      \	        V 4      8w  d(   R\	        V4      : R\	        V 4      : 2p\        V4      hVoMV.\	        V 4      ,          oVV3R lpV# u upi )aÑ  Returns a comparison function for a generic attribute.

The value(s) of the attr(s) are compared using the specified
operators. If all the attributes are equal, then the constructed
function returns True. Potentially, the constructed edge_match
function can be slow since it must verify that no isomorphism
exists between the multiedges before it returns False.

Parameters
----------
attr : string | list
    The edge attribute to compare, or a list of node attributes
    to compare.
default : value | list
    When `attr` is a string, `default` is the default value for that
    edge attribute.
    When `attr` is a list, `default` is a default value for all edge
    attributes or a list of length same as `attr` holding default
    values for each edge attributes.
op : callable | list
    When `attr` is a string, `op` is the operator to use when comparing
    that attribute.
    When `attr` is a list, `op` is an operator to use when comparing
    each edge attribute or a list of length same as `attr` holding
    operators to use when comparing values for each attribute.

Returns
-------
match : function
    The customized, generic `edge_match` function.

Examples
--------
>>> from operator import eq
>>> from math import isclose
>>> from networkx.algorithms.isomorphism import generic_node_match
>>> nm = generic_node_match("weight", 1.0, isclose)
>>> nm = generic_node_match("color", "red", eq)
>>> nm = generic_node_match(["weight", "color"], [1.0, "red"], [isclose, eq])

Tr3   z-zip() argument length not right. Got len(op)=z. Need len(attr)=c                 óD  <€ V P                  4        UUUu. uF(  pS
 UUu. uF  w  r4VP                  W44      NK  	  uppNK*  	  ppppVP                  4        UUUu. uF(  pS
 UUu. uF  w  r4VP                  W44      NK  	  uppNK*  	  pppp\        V4       Fi  p\        WW4       FV  w  r‰\        ;QJ d&    R  \        W‰S4       4       F  '       d   K   RM	  RM! R  \        W‰S4       4       4      '       d   KU   Kf  	   R# 	  R# u uppi u upppi u uppi u upppi )c              3   ó6   "  € T F  w  rq3! W4      x € K  	  R # 5ir*   © )r   Úea1Úea2Úms   &   r   r!   Ú9generic_multiedge_match.<locals>.match.<locals>.<genexpr>t  s   é € ÐUÑ:T©;¨3°Q˜1˜SŸ;˜;Ó:Tùs   ‚FT)rD   r,   r   r$   r#   )rE   rF   Úddr?   r7   Úmultiedges1Úmultiedges2Úme2_permÚeattrs1Úeattrs2r9   Úopss   &&        €€r   r1   Ú&generic_multiedge_match.<locals>.matchm  sà   ø€ àBK×BRÑBRÔBTÕUÑBT¸B±Ô7±©¨˜Ÿ™˜qž±Õ7ÑBTˆÒUØBK×BRÑBRÔBTÕUÑBT¸B±Ô7±©¨˜Ÿ™˜qž±Õ7ÑBTˆÒUä$ [Ö1ˆHÜ$'¨Ö$>Ñ �ß“sÑU¼#¸gÐPSÔ:TÓU—s—s’sÑU¼#¸gÐPSÔ:TÓU×UÔUâñ %?ò ñ 2ñ ùó 8ùÔUùÛ7ùÔUs-   –
D D¼DÁ
DÁ&DÂDÄDÄD)r;   r<   r=   r$   ÚlenÚ
ValueError)r/   r0   rq   r?   Úmsgr1   r9   r…   s   &&&   @@r   Úgeneric_multiedge_matchrŠ   .  s¿   ù€ ôZ �$œ×ÒØˆvˆØ�)ˆä�'œ4× Ò Ü”S˜¨tÔ4Ó5‰á'+Ó,¡t !�W“¡tÑ,ˆô �"”d×ÒÜˆr‹7”c˜$“iÔØB¼#¸b»'¹ÐCUÌ3ÈtË9É,ÐWˆCÜ˜S“/Ð!Ø‰àˆd”S˜“YÕˆöð  €Lùò7 -s   ÁC)	r@   r   r   r^   r   r   rv   r   rŠ   r*   )gñhãˆµøä>g:Œ0âŽyE>)Ú__doc__r   r	   Ú	itertoolsr   Ú__all__r   r'   Úcategorical_docr@   r   r   ÚreplaceÚtmpdocÚnumerical_docr^   r   r   Úgeneric_docrv   r   rŠ   rz   r   r   Ú<module>r“      sO  ðñó Û Ý "ò
€ôôYð€ò<ñ$ "Ð"8Ð:RÓSÐ òð: "1Ð Ô Ø!0×!8Ñ!8¸ÀÓ!HÐ Ô Ø	×	 Ñ	  ¨Ó	0€Ø	�‰Ð0Ð2OÓ	P€Ø&,Ð Ô #ð€ôDñ2  Ð 4Ð6LÓMÐ ôðF  -Ð Ô Ø,×4Ñ4°V¸VÓDÐ Ô Ø	×	Ñ	˜v vÓ	.€Ø	�‰Ð.Ð0KÓ	L€Ø$*Ð Ô !ð!€òHñ8 Ð0Ð2FÓGÐ òOðf )Ð Ô Ø(×0Ñ0°¸Ó@Ð Ö r   