When using the method: ndex2.create_nice_cx_from_networkx() empty list attributes are sometimes treated as strings. This was tested with networkx version 2.5.1
import json
import ndex2
import networkx as nx
#Create a networkx graph with a boolean attribute
G = nx.Graph()
G.add_node(1, emptylist=[])
nx.get_node_attributes(G, 'emptylist')
print(json.dumps(ndex2.create_nice_cx_from_networkx(G).to_cx(), indent=2))
When using the method:
ndex2.create_nice_cx_from_networkx()
empty list attributes are sometimes treated as strings. This was tested with networkx version2.5.1
When run got this output:
The data type d for the nodeAttribute should be a
list_of_string
and NOT anstring