관리-도구
편집 파일: graphlib.cpython-310.opt-2.pyc
o 6��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/python310/lib64/python3.10/graphlib.py�__init__ s z_NodeInfo.__init__N)�__name__� __module__�__qualname__� __slots__r r r r r r s r c @ s e Zd Z dS )r N)r r r r r r r r s c @ s` e Zd Z ddd�Zdd� Zdd� Zdd � Zd d� Zdd � Zdd� Z dd� Z dd� Zdd� ZdS )r Nc C sL i | _ d | _d| _d| _|d ur"|�� D ]\}}| j|g|�R � qd S 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 rt|� | j |<