HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/lib/python3.9/site-packages/pip/_vendor/resolvelib/__pycache__/structs.cpython-39.pyc
a

?�f��@sGdd�de�ZdS)c@speZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�Zdd�Z
dd�Zdd�ZdS)�
DirectedGraphz+A graph structure with directed edges.
    cCst�|_i|_i|_dS�N)�set�	_vertices�	_forwards�
_backwards��self�r	�B/usr/lib/python3.9/site-packages/pip/_vendor/resolvelib/structs.py�__init__szDirectedGraph.__init__cCs
t|j�Sr)�iterrrr	r	r
�__iter__
szDirectedGraph.__iter__cCs
t|j�Sr)�lenrrr	r	r
�__len__
szDirectedGraph.__len__cCs
||jvSr)r�r�keyr	r	r
�__contains__szDirectedGraph.__contains__cCsBt�}t|j�|_dd�|j��D�|_dd�|j��D�|_|S)z-Return a shallow copy of this graph.
        cSsi|]\}}|t|��qSr	�r��.0�k�vr	r	r
�
<dictcomp>�z&DirectedGraph.copy.<locals>.<dictcomp>cSsi|]\}}|t|��qSr	rrr	r	r
rr)rrrr�itemsr)r�otherr	r	r
�copys
zDirectedGraph.copycCs:||jvrtd��|j�|�t�|j|<t�|j|<dS)z'Add a new vertex to the graph.
        z
vertex existsN)r�
ValueError�addrrrrr	r	r
rs

zDirectedGraph.addcCsT|j�|�|j�|�D]}|j|�|�q|j�|�D]}|j|�|�q:dS)zLRemove a vertex from the graph, disconnecting all edges from/to it.
        N)r�remover�popr)rr�f�tr	r	r
r%s
zDirectedGraph.removecCs||j|vo||j|vSr)rr�rr!r"r	r	r
�	connected.szDirectedGraph.connectedcCs6||jvrt|��|j|�|�|j|�|�dS)zgConnect two existing vertices.

        Nothing happens if the vertices are already connected.
        N)r�KeyErrorrrrr#r	r	r
�connect1s
zDirectedGraph.connectccs,|j��D]\}}|D]}||fVqq
dSr)rr)rr!Zchildrenr"r	r	r
�
iter_edges;szDirectedGraph.iter_edgescCst|j|�Sr)rrrr	r	r
�
iter_children@szDirectedGraph.iter_childrencCst|j|�Sr)rrrr	r	r
�iter_parentsCszDirectedGraph.iter_parentsN)�__name__�
__module__�__qualname__�__doc__rr
rrrrrr$r&r'r(r)r	r	r	r
rs			
rN)�objectrr	r	r	r
�<module>r