o
    3Î®c‡  ã                   @   s,   d dl Z d dlZdd„ Zdd„ Zdd„ ZdS )é    Nc                  C   s  t  ¡ } t  d¡}t  d¡}t  d¡}t  d¡}t  d¡}t  d¡}t  d¡}t  d¡}t  d¡}	t  |¡}
t  |
t  d¡¡sAJ ‚t  |¡}
t  |
t  d¡¡sQJ ‚t  t  |¡¡}t  ||¡saJ ‚t  t  | ¡¡}t  | |¡sqJ ‚t  ¡ }t  t  |¡¡}t  ||¡s…J ‚d S )Né   é
   é   é   é   )ÚnxÚ
null_graphÚempty_graphÚcomplete_graphÚ
path_graphÚ
complementÚis_isomorphicÚ
bull_graph)ÚnullÚempty1Úempty10ÚK3ÚK5ÚK10ÚP2ÚP3ÚP5ÚP10ÚGÚP3ccÚnullccÚbÚbcc© r   úU/tmp/pip-target-vg8gfxp4/lib/python/networkx/algorithms/operators/tests/test_unary.pyÚtest_complement   s*   










r    c                  C   sR   t  ¡ } |  dd¡ |  dd¡ |  dd¡ t  | ¡}t| ¡ ƒg d¢ks'J ‚d S )NÚAÚBÚCÚD)	)r"   r!   )r"   r#   )r"   r$   )r#   r!   )r#   r"   )r#   r$   )r$   r!   )r$   r"   )r$   r#   )r   ÚDiGraphÚadd_edger   ÚsortedÚedges)ÚG1ÚG1Cr   r   r   Útest_complement_2!   s   
r+   c                  C   s   t  ¡ } t t jt j| ¡ d S )N)r   ÚGraphÚpytestÚraisesÚNetworkXErrorÚreverse)r)   r   r   r   Útest_reverse14   s   r1   )r-   Únetworkxr   r    r+   r1   r   r   r   r   Ú<module>   s
    