You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the method: ndex2.create_nice_cx_from_networkx() Boolean attributes are sometimes treated as integers. This was tested with networkx version 2.5.1
import ndex2
import networkx as nx
#Create a networkx graph with a boolean attribute
G = nx.Graph()
G.add_node(1, isRoot=False)
nx.get_node_attributes(G, 'isRoot')
print(ndex2.create_nice_cx_from_networkx(G).to_cx())
When using the method:
ndex2.create_nice_cx_from_networkx()
Boolean attributes are sometimes treated as integers. This was tested with networkx version2.5.1
When run got this output:
The data type d for the nodeAttribute should be a
boolean
and NOT aninteger
Extracted from: https://ndexbio.atlassian.net/browse/UD-1753
The text was updated successfully, but these errors were encountered: