B
Re @ s G d d de ZdS )c @ sp e Zd ZdZdd Zdd Zdd Zdd Zd
d Zdd
Z dd Z
dd Zdd Zdd Z
dd Zdd ZdS )
DirectedGraphz+A graph structure with directed edges.
c C s t | _i | _i | _d S )N)set _vertices _forwards
_backwards)self r /builddir/build/BUILDROOT/alt-python37-pip-20.2.4-6.el8.x86_64/opt/alt/python37/lib/python3.7/site-packages/pip/_vendor/resolvelib/structs.py__init__ s zDirectedGraph.__init__c C s
t | jS )N)iterr )r r r r __iter__
s zDirectedGraph.__iter__c C s
t | jS )N)lenr )r r r r __len__
s zDirectedGraph.__len__c C s
|| j kS )N)r )r keyr r r __contains__ s zDirectedGraph.__contains__c C sB t }t| j|_dd | j D |_dd | j D |_|S )z-Return a shallow copy of this graph.
c S s i | ]\}}t ||qS r )r ).0kvr r r