3
d              Z   @   s  d dl Z d dlZd dlZd dlZdd Zdd Zdd Ze jdd	d
d Ze jdd	dd Z	yd dl
Z
dZW n ek
r   dZY nX yd dlZdZW n ek
r   dZY nX yd dlZdZW n ek
r   dZY nX yd dlZdZW n ek
r   dZY nX yd dlZdZW n ek
r4   dZY nX yd dlZdZW n ek
r`   dZY nX yd dlZdZW n ek
r   dZY nX yd dlZdZW n ek
r   dZY nX g ZdddddddgZddddddddddd d!d"d#d$d%d&d'd(d)d*d+d,d-d.d/gZd0gZd'gZd1gZ d2gZ!d3gZ"d4gZ#es:ee7 ZesHee7 ZesVee7 Zesdee7 Zesree 7 Zesee!7 Zesee"7 Zesee#7 Zej$j%d5red6d7g7 ZdS )8    Nc             C   s   | j ddddd d S )Nz	--runslow
store_trueFzrun slow tests)actiondefaulthelp)Z	addoption)parser r   5/tmp/pip-build-7vycvbft/networkx/networkx/conftest.pypytest_addoption   s    r	   c             C   s   | j dd d S )Nmarkerszslow: mark test as slow to run)Zaddinivalue_line)configr   r   r   pytest_configure   s    r   c             C   sB   | j drd S tjjdd}x |D ]}d|jkr"|j| q"W d S )Nz	--runslowzneed --runslow option to run)reasonZslow)Z	getoptionpytestmarkskipkeywordsZ
add_marker)r   itemsZ	skip_slowitemr   r   r   pytest_collection_modifyitems   s    


r   T)Zautousec               C   s   t jdtdd t jdtdd t jdtdd t jdtdd t jdtdd t jdtdd t jdtd	d t jdtd
d t jdtdd d S )Nignorez!literal_stringizer is deprecated*)categorymessagez#literal_destringizer is deprecated*zis_string_like is deprecated*zmake_str is deprecated*z'context manager reversed is deprecated*z$This will return a generator in 3.0*zbetweenness_centrality_source*zedge_betweeness*z/the matrix subclass is not the recommended way*)warningsfilterwarningsDeprecationWarningPendingDeprecationWarningr   r   r   r   set_warnings   s8    r   c             C   s   t | d< d S )NZnx)networkx)Zdoctest_namespacer   r   r   add_nxE   s    r   Fz/algorithms/centrality/current_flow_closeness.pyz*algorithms/node_classification/__init__.pyzalgorithms/non_randomness.pyz"algorithms/shortest_paths/dense.pyzlinalg/bethehessianmatrix.pyzlinalg/laplacianmatrix.pyzutils/misc.pyz'algorithms/assortativity/correlation.pyz"algorithms/assortativity/mixing.pyz!algorithms/assortativity/pairs.pyzalgorithms/bipartite/matrix.pyz algorithms/bipartite/spectral.pyz1algorithms/centrality/current_flow_betweenness.pyz8algorithms/centrality/current_flow_betweenness_subset.pyz$algorithms/centrality/eigenvector.pyzalgorithms/centrality/katz.pyz%algorithms/centrality/second_order.pyz%algorithms/centrality/subgraph_alg.pyz!algorithms/communicability_alg.pyz$algorithms/link_analysis/hits_alg.pyz(algorithms/link_analysis/pagerank_alg.pyz%algorithms/node_classification/hmn.pyz%algorithms/node_classification/lgc.pyzalgorithms/similarity.pyzconvert_matrix.pyzdrawing/layout.pyz"generators/spectral_graph_forge.pyzlinalg/algebraicconnectivity.pyzlinalg/attrmatrix.pyzlinalg/graphmatrix.pyzlinalg/modularitymatrix.pyzlinalg/spectrum.pyzutils/rcm.pyzdrawing/nx_pylab.pyzreadwrite/nx_yaml.pyzdrawing/nx_agraph.pyzdrawing/nx_pydot.pyzreadwrite/nx_shp.pywinzreadwrite/graph6.pyzreadwrite/sparse6.py)&r   r   sysr   r	   r   r   Zfixturer   r   numpyZ	has_numpyImportErrorZscipyZ	has_scipyZ
matplotlibZhas_matplotlibZpandasZ
has_pandasZ
pygraphvizZhas_pygraphvizZyamlZhas_yamlZpydotZ	has_pydotZogrZhas_ogrZcollect_ignoreZneeds_numpyZneeds_scipyZneeds_matplotlibZneeds_pandasZ
needs_yamlZneeds_pygraphvizZneeds_pydotZ	needs_ogrplatform
startswithr   r   r   r   <module>   s   )







