관리-도구
편집 파일: graphlib.cpython-39.opt-2.pyc
a R�fe% � @ s@ d dgZ dZdZG dd� d�ZG dd� de�ZG dd � d �ZdS ) �TopologicalSorter� CycleError������c @ s e Zd ZdZdd� ZdS )� _NodeInfo��node� npredecessors� successorsc C s || _ d| _g | _d S �N� r )�selfr � r �-/opt/alt/python39/lib64/python3.9/graphlib.py�__init__ s z_NodeInfo.__init__N)�__name__� __module__�__qualname__� __slots__r r r r r r s r c @ s e Zd ZdS )r N)r r r r r r r r s c @ s^ e Zd Zddd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� ZdS )r Nc C sH i | _ d | _d| _d| _|d urD|�� D ]\}}| j|g|�R � q(d S r )� _node2info�_ready_nodes�_npassedout� _nfinished�items�add)r Zgraphr �predecessorsr r r r * s zTopologicalSorter.__init__c C s* | j �|� }d u r&t|� | j |<