| Server IP : 172.67.131.151 / Your IP : 104.23.197.244 Web Server : Apache System : Linux keen-cori.18-142-40-148.plesk.page 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 06:59:36 UTC 2025 x86_64 User : simottodesign.com_2tntp341vs7 ( 10011) PHP Version : 8.3.31 Disable Function : opcache_get_status MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /opt/alt/python311/lib/python3.11/__pycache__/ |
Upload File : |
�
��CAן� �r � d dl mZ ddgZdZdZ G d� d� � Z G d� de� � Z G d � d� � Zd
S )� )�GenericAlias�TopologicalSorter�
CycleError������c � � e Zd ZdZd� ZdS )� _NodeInfo��node�
npredecessors�
successorsc �0 � || _ d| _ g | _ d S �Nr r
)�selfr s �-/opt/alt/python311/lib/python3.11/graphlib.py�__init__z_NodeInfo.__init__ s � ��� �
��� ����� N)�__name__�
__module__�__qualname__� __slots__r � r r r r s( � � � � � �5�I�� � � � r r c � � e Zd ZdZdS )r aC 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.
N)r r r �__doc__r r r r r s � � � � � � � � �Dr c �f � e Zd ZdZd
d�Zd� Zd� Zd� Zd� Zd� Z d � Z
d
� Zd� Zd� Z
ee� � ZdS )r zFProvides functionality to topologically sort a graph of hashable nodesNc � � i | _ d | _ d| _ d| _ |�(|� � � D ]\ }} | j |g|�R � �d S d S r )�
_node2info�_ready_nodes�_npassedout�
_nfinished�items�add)r �graphr �predecessorss r r zTopologicalSorter.__init__, sq � ���� �����������&+�k�k�m�m�
.�
.�"��l�����-��-�-�-�-�-� ��
.�
.r c �p � | j � |� � x}�t |� � x| j |<