With the release of networkx 2.5.1 the call NiceCXNetwork.to_networkx() is failing with a ValueError
To reproduce, install networkx 2.5.1 and ndex2 3.3.2 and run this code:
from ndex2.nice_cx_network import NiceCXNetwork
net = NiceCXNetwork()
n_one = net.create_node(node_name='node1')
n_two = net.create_node(node_name='node2')
net.create_edge(edge_source=n_one, edge_target=n_two)
net.to_networkx()
The output will be:
....anaconda3/envs/python39/lib/python3.9/site-packages/ndex2/nice_cx_network.py", line 1622, in to_networkx
if float(nx.__version__) >= 2.0:
ValueError: could not convert string to float: '2.5.1'
With the release of networkx
2.5.1
the callNiceCXNetwork.to_networkx()
is failing with aValueError
To reproduce, install networkx
2.5.1
and ndex23.3.2
and run this code:The output will be: