ok

Mini Shell

Direktori : /opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/
Upload File :
Current File : //opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyc

�
Bu�_c@sdefd��YZdS(t
DirectedGraphcBszeZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�ZRS(
s+A graph structure with directed edges.
    cCs"t�|_i|_i|_dS(N(tsett	_verticest	_forwardst
_backwards(tself((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt__init__s	cCs
t|j�S(N(titerR(R((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt__iter__
scCs
t|j�S(N(tlenR(R((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt__len__
scCs
||jkS(N(R(Rtkey((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt__contains__scCsWt�}t|j�|_d�|jj�D�|_d�|jj�D�|_|S(s-Return a shallow copy of this graph.
        cSs%i|]\}}t|�|�qS((R(t.0tktv((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pys
<dictcomp>s	cSs%i|]\}}t|�|�qS((R(R
RR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pys
<dictcomp>s	(RRRRtitemsR(Rtother((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pytcopys
	cCsR||jkrtd��n|jj|�t�|j|<t�|j|<dS(s'Add a new vertex to the graph.
        s
vertex existsN(Rt
ValueErrortaddRRR(RR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyRs
cCsv|jj|�x.|jj|�D]}|j|j|�q#Wx.|jj|�D]}|j|j|�qTWdS(sLRemove a vertex from the graph, disconnecting all edges from/to it.
        N(RtremoveRtpopR(RRtftt((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyR%s
cCs$||j|ko#||j|kS(N(RR(RRR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt	connected.scCsJ||jkrt|��n|j|j|�|j|j|�dS(sgConnect two existing vertices.

        Nothing happens if the vertices are already connected.
        N(RtKeyErrorRRR(RRR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pytconnect1sccs@x9|jj�D](\}}x|D]}||fVq#WqWdS(N(RR(RRtchildrenR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt
iter_edges;s
cCst|j|�S(N(RR(RR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt
iter_children@scCst|j|�S(N(RR(RR((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pytiter_parentsCs(t__name__t
__module__t__doc__RRR
RRRRRRRRR(((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyRs												
		N(tobjectR(((sO/opt/alt/python36/lib/python3.6/site-packages/pip/_vendor/resolvelib/structs.pyt<module>s

Zerion Mini Shell 1.0