ó
Ê½÷Xc           @` s‰   d  d l  m Z m Z m Z d  d l Z d  d l Z d  d l m Z m	 Z	 m
 Z
 d  d l m Z m Z d „  Z e d k r… e
 ƒ  n  d S(   i    (   t   divisiont   print_functiont   absolute_importN(   t   assert_t   assert_equalt   run_module_suite(   t
   csr_matrixt   csgraphc       
   C` s'  t  j d d t ƒ}  t j ƒ   t j d d d ƒt j t |  ƒ ƒ \ } } t	 | d k ƒ t
 | d d d d	 g ƒ d |  d <|  d <t j t |  ƒ ƒ \ } } t	 | d	 k ƒ t
 | d d d d g ƒ d |  d <t j t |  ƒ ƒ \ } } t	 | d k ƒ t
 | d d d
 d g ƒ Wd  QXd  S(   Ni   t   dtypet   ignoret   messages#   `cs_graph_components` is deprecatedi    i   i   i   iþÿÿÿ(   i    i   (   i   i    (   i   i   (   t   npt   eyet   boolt   warningst   catch_warningst   filterwarningsR   t   cs_graph_componentsR   R   R   (   t   Dt   n_compt   flag(    (    sO   /tmp/pip-build-7oUkmx/scipy/scipy/sparse/csgraph/tests/test_graph_components.pyt   test_cs_graph_components
   s    
t   __main__(   t
   __future__R    R   R   R   t   numpyR   t   numpy.testingR   R   R   t   scipy.sparseR   R   R   t   __name__(    (    (    sO   /tmp/pip-build-7oUkmx/scipy/scipy/sparse/csgraph/tests/test_graph_components.pyt   <module>   s   	