Your IP : 18.191.195.180


Current Path : /opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/
Upload File :
Current File : //opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyc

�
�Rec@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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt__init__s	cCs
t|j�S(N(titerR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt__iter__
scCs
t|j�S(N(tlenR(R((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt__len__
scCs
||jkS(N(R(Rtkey((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pys
<dictcomp>s	cSs%i|]\}}t|�|�qS((R(R
RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pys
<dictcomp>s	(RRRRtitemsR(Rtother((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyR%s
cCs$||j|ko#||j|kS(N(RR(RRR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/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((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pytconnect1sccs@x9|jj�D](\}}x|D]}||fVq#WqWdS(N(RR(RRtchildrenR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt
iter_edges;s
cCst|j|�S(N(RR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt
iter_children@scCst|j|�S(N(RR(RR((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pytiter_parentsCs(t__name__t
__module__t__doc__RRR
RRRRRRRRR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyRs												
		N(tobjectR(((s�/builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/resolvelib/structs.pyt<module>t

?>