File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
src/compas/datastructures/network Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 11# flake8: noqa
2- cython
32# ezdxf
43imageio <= 2.6 ; python_version < '3.5'
54imageio >= 2.7 ; python_version >= '3.5'
65jsonschema >= 4.17 , < 4.18
7- # laspy
86matplotlib >= 2.2 , < 3.0 ; python_version >= '2.7' and python_version < '3.0'
97matplotlib >= 2.2 , < 3.1 ; python_version >= '3.5' and python_version <= '3.7' and sys_platform == 'win32'
108matplotlib >= 3.1 ; python_version >= '3.8' and sys_platform == 'win32'
119matplotlib >= 2.2 ; python_version >= '3.5' and sys_platform != 'win32'
1210networkx
13- # numba
1411numpy >= 1.15.4
1512pillow
16- # planarity ; sys_platform != 'win32'
17- pycollada
1813schema
1914scipy >= 1.1
2015sympy
Original file line number Diff line number Diff line change @@ -192,12 +192,12 @@ def network_is_planar(network):
192192
193193 """
194194 try :
195- import planarity
195+ import networkx as nx
196196 except ImportError :
197- print ("Planarity is not installed." )
197+ print ("NetworkX is not installed. Get NetworkX at https://networkx.github.io/ ." )
198198 raise
199199
200- return planarity .is_planar (list ( network .edges () ))
200+ return nx .is_planar (network .to_networkx ( ))
201201
202202
203203def network_is_planar_embedding (network ):
You can’t perform that action at this time.
0 commit comments