grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026ó  Çõ+È&%ãó^•SSKJr SS/rSrSr"SS5r"SS\5r"S S5rg ) é)Ú GenericAliasÚTopologicalSorterÚ CycleErroréÿÿÿÿéþÿÿÿcó•\rSrSrSrSrSrg)Ú _NodeInfoé ©ÚnodeÚ npredecessorsÚ successorscó,•XlSUl/Ulg©Nrr )Úselfr s Ú//opt/alt/python313/lib64/python3.13/graphlib.pyÚ__init__Ú_NodeInfo.__init__ s€àŒ ð ˆÔðˆ�óN)Ú__name__Ú __module__Ú __qualname__Ú__firstlineno__Ú __slots__rÚ__static_attributes__©rrr r s †Ø5€Iõ rr có•\rSrSrSrSrg)réa#Subclass of ValueError raised by TopologicalSorter.prepare if cycles exist in the working graph. If multiple cycles exist, only one undefined choice among them will be reported and included in the exception. The detected cycle can be accessed via the second element in the *args* attribute of the exception instance and consists in a list of nodes, such that each node is, in the graph, an immediate predecessor of the next node in the list. In the reported list, the first and the last node will be the same, to make it clear that it is cyclic. rN)rrrrÚ__doc__rrrrrrs †ñ ò rcóh•\rSrSrSrSSjrSrSrSrSr S r S r S r S r S r\"\5rSrg)ré)zFProvides functionality to topologically sort a graph of hashable nodesNcóœ•0UlSUlSUlSUlUb-UR 5Hup#UR "U/UQ76 M ggr)Ú _node2infoÚ _ready_nodesÚ _npassedoutÚ _nfinishedÚitemsÚadd)rÚgraphr Ú predecessorss rrÚTopologicalSorter.__init__,sO€ØˆŒØ ˆÔØˆÔØˆŒà Ñ Ø&+§k¡k¦mÑ"�Ø—’˜Ð-  Õ-ò'4ð rcóv•URRU5=nc[U5=URU'nU$©N)r#Úgetr )rr Úresults rÚ _get_nodeinfoÚTopologicalSorter._get_nodeinfo6s8€Ø—o‘o×)Ñ)¨$Ó/Ð /ˆFÑ 8Ü-6°t«_Ð <ˆD�O‰O˜DÑ ! F؈ rcóü•URb [S5eURU5nU=R[ U5- slUH/nURU5nUR R U5 M1 g)a;Add a new node and its predecessors to the graph. Both the *node* and all elements in *predecessors* must be hashable. If called multiple times with the same node argument, the set of dependencies will be the union of all dependencies passed in. It is possible to add a node with no dependencies (*predecessors* is not provided) as well as provide a dependency twice. If a node that has not been provided before is included among *predecessors* it will be automatically added to the graph with no predecessors of its own. Raises ValueError if called after "prepare". Nz/Nodes cannot be added after a call to prepare())r$Ú ValueErrorr0r ÚlenrÚappend)rr r*ÚnodeinfoÚpredÚ pred_infos rr(ÚTopologicalSorter.add;st€ð × Ñ Ñ (ÜÐNÓOÐ Oð×%Ñ% dÓ+ˆØ×Ò¤# lÓ"3Ñ3Õó!ˆDØ×*Ñ*¨4Ó0ˆIØ × Ñ × 'Ñ '¨Ö -ò!rcó•URb [S5eURR5Vs/sH oRS:XdMUR PM" snUlUR 5nU(a [SU5egs snf)aPMark the graph as finished and check for cycles in the graph. If any cycle is detected, "CycleError" will be raised, but "get_ready" can still be used to obtain as many nodes as possible until cycles block more progress. After a call to this function, the graph cannot be modified and therefore no more nodes can be added using "add". Nzcannot prepare() more than oncerznodes are in a cycle)r$r3r#Úvaluesr r Ú _find_cycler)rÚiÚcycles rÚprepareÚTopologicalSorter.prepareVs‚€ð × Ñ Ñ (ÜÐ>Ó?Ð ?ð!ŸO™O×2Ñ2Ô4ó Ú4�q¿¹È1Ñ8L‹FˆA�FŒFÑ4ñ ˆÔð× Ñ Ó"ˆÞ ÜÐ3°eÓ<Ð <ð ùò s µBÁ Bcó•URc [S5e[UR5nURnUHn[X#lM URR 5 U=R[U5- slU$)ayReturn a tuple of all the nodes that are ready. Initially it returns all nodes with no predecessors; once those are marked as processed by calling "done", further calls will return all new nodes that have all their predecessors already processed. Once no more progress can be made, empty tuples are returned. Raises ValueError if called without calling "prepare" previously. úprepare() must be called first) r$r3Útupler#Ú _NODE_OUTr Úclearr%r4)rr/Ún2ir s rÚ get_readyÚTopologicalSorter.get_readylsy€ð × Ñ Ñ $ÜÐ=Ó>Ð >ô�t×(Ñ(Ó)ˆØ�o‰oˆÛˆDÜ&/ˆC‰IÖ #ñð ×Ñ×ÑÔ!Ø ×ÒœC ›KÑ'Õàˆ rcóœ•URc [S5eURUR:=(d [ UR5$)aReturn ``True`` if more progress can be made and ``False`` otherwise. Progress can be made if cycles do not block the resolution and either there are still nodes ready that haven't yet been returned by "get_ready" or the number of nodes marked "done" is less than the number that have been returned by "get_ready". Raises ValueError if called without calling "prepare" previously. rB)r$r3r&r%Úbool©rs rÚ is_activeÚTopologicalSorter.is_active†sA€ð × Ñ Ñ $ÜÐ=Ó>Ð >Ø�‰ ×!1Ñ!1Ñ1×L´T¸$×:KÑ:KÓ5LÐLrcó"•UR5$r-)rLrKs rÚ__bool__ÚTopologicalSorter.__bool__”s€Ø�~‰~ÓÐrcó$•URc [S5eURnUHænURU5=nc[SU<S35eURnU[ :wa0US:¼a[SU<S35eU[ :Xa[SU<S35e[ UlURHInX&nU=RS-slURS:XdM.URRU5 MK U=RS- sl Mè g) a¿Marks a set of nodes returned by "get_ready" as processed. This method unblocks any successor of each node in *nodes* for being returned in the future by a call to "get_ready". Raises ValueError if any node in *nodes* has already been marked as processed by a previous call to this method, if a node was not added to the graph by using "add" or if called without calling "prepare" previously or if node has not yet been returned by "get_ready". NrBznode z was not added using add()rz% was not passed out (still not ready)z was already marked doneé) r$r3r#r.r rDÚ _NODE_DONErr5r&)rÚnodesrFr r6ÚstatÚ successorÚsuccessor_infos rÚdoneÚTopologicalSorter.done—s€ð × Ñ Ñ $ÜÐ=Ó>Ð >à�o‰oˆãˆDð ŸG™G D›MÐ)�Ñ2Ü  5¨©Ð0JÐ!KÓLÐLð×)Ñ)ˆDØ”yÓ Ø˜1“9Ü$Ø ™xÐ'LÐMóððœZÓ'Ü$ u¨T©HÐ4LÐ%MÓNÐNô &0ˆHÔ "ð&×0Ô0� Ø!$¡�Ø×,Ò,°Ñ1Õ,Ø!×/Ñ/°1Õ4Ø×%Ñ%×,Ñ,¨YÖ7ñ 1ð �OŠO˜qÑ �Oò9rcóê•URn/n/n[5n0nUH—nXd;aM Xd;aXe;a X%USU/-s $O_URU5 UR[ XR 5R 5 [U5XV'URU5 U(a US"5nOM—MŽ g![a# XRR5 UR5 Of=fU(aMLNA)Nr) r#Úsetr(r5ÚiterrÚ__next__r4Ú StopIterationÚpop)rrFÚstackÚitstackÚseenÚ node2stackir s rr<ÚTopologicalSorter._find_cycleÆsø€Ø�o‰oˆØˆØˆÜ‹uˆØˆ ãˆDØ‹|ÙàØ“<ðÓ*Ø$°Ñ%6Ð%8Ð9¸T¸FÑBÒBð+ð—H‘H˜T”NØ—N‘N¤4¨© ×(<Ñ(<Ó#=×#FÑ#FÔGÜ(+¨E« �KÑ%Ø—L‘L Ô&öð&Ø& rš{›}˜Øñ ñ/ñ ð8øô )ó&Ø'¯ © « Ð4ØŸ ™ ž ð&ú÷ ‘esÂ) B;Â;*C(Ã'C(c#óÜ# •UR5 UR5(aAUR5nUShv•N UR"U6 UR5(aM@ggN,7f)a)Returns an iterable of nodes in a topological order. The particular order that is returned may depend on the specific order in which the items were inserted in the graph. Using this method does not require to call "prepare" or "done". If any cycle is detected, :exc:`CycleError` will be raised. N)r?rLrGrX)rÚ node_groups rÚ static_orderÚTopologicalSorter.static_orderësPé€ð � ‰ ŒØ�n‰n×ÑØŸ™Ó)ˆJØ!× !Ð !Ø �IŠI�zÑ "ð�n‰n×Õá !ùs‚;A,½A*¾(A,Á(A,)r&r#r%r$r-)rrrrrrr0r(r?rGrLrOrXr<rgÚ classmethodrÚ__class_getitem__rrrrrr)sG†ÙPô.òò .ò6=ò,ò4 Mò ò-!ò^#òJ #ñ$ LÓ1ÓrN) ÚtypesrÚ__all__rDrSr r3rrrrrÚrms>ðÝà   Ð -€à € Ø € ÷ñô"  �ô  ÷Q2òQ2r