관리-도구
편집 파일: graphlib.cpython-312.opt-2.pyc
� �Q�f�% � �^ � d dl mZ ddgZdZdZ G d� d� Z G d� de� Z G d � d� Zy )� )�GenericAlias�TopologicalSorter� CycleError������c � � e Zd ZdZd� Zy)� _NodeInfo��node� npredecessors� successorsc �. � || _ d| _ g | _ y �Nr r )�selfr s �//opt/alt/python312/lib64/python3.12/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 Z y)r N)r r r r r r r r s � � � r c �\ � e Zd Z dd�Zd� Zd� Zd� Zd� Zd� Zd� Z d � Z d � Zd� Z e e� Zy) r Nc � � i | _ d | _ d| _ d| _ |�,|j � D ] \ }} | j |g|��� � y y r )� _node2info�_ready_nodes�_npassedout� _nfinished�items�add)r �graphr �predecessorss r r zTopologicalSorter.__init__, sS � ���� �����������&+�k�k�m�"��l������-��-� '4� r c �t � | j j |� x}�t |� x| j |<