OwlCyberSecurity - MANAGER
Edit File: graph.cpython-39.pyc
a ���e�2 � @ s\ d dl mZ d dlmZ ddlmZmZ eG dd� d��ZG dd� de�ZG d d � d �Z dS )� )�total_ordering)�ProjectState� )�CircularDependencyError�NodeNotFoundErrorc @ sX e Zd ZdZdd� Zdd� Zdd� Zdd � Zd d� Zdd � Z dd� Z dd� Zdd� ZdS )�Nodezp A single node in the migration graph. Contains direct links to adjacent nodes in either direction. c C s || _ t� | _t� | _d S �N)�key�set�children�parents)�selfr � r �[/home/gouroczh/virtualenv/pat/3.9/lib/python3.9/site-packages/django/db/migrations/graph.py�__init__ s z Node.__init__c C s | j |kS r �r �r �otherr r r �__eq__ s zNode.__eq__c C s | j |k S r r r r r r �__lt__ s zNode.__lt__c C s t | j�S r )�hashr �r r r r �__hash__ s z Node.__hash__c C s | j | S r r )r �itemr r r �__getitem__ s zNode.__getitem__c C s t | j�S r )�strr r r r r �__str__ s zNode.__str__c C s d| j j| jd | jd f S )Nz<%s: (%r, %r)>r r )� __class__�__name__r r r r r �__repr__# s z Node.__repr__c C s | j �|� d S r )r �add)r �childr r r � add_child&