Ewoks json representation change
- The graph attributes should have an "id" and a "label" instead of a "name"
- The node attributes should have a "label" in addition to the "id"
Id's are unique, labels don't need to be unique.
Currently ewoks restricts the value of an "id" to be a hashable, which is a resitriction that comes from the
>>> import networkx as nx >>> G=nx.Graph() >>> >>> G.add_edge(,) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/users/denolf/virtualenvs/ewoks/ubuntu_20_04/py38/lib/python3.8/site-packages/networkx/classes/graph.py", line 879, in add_edge if u not in self._node: TypeError: unhashable type: 'list' >>> >>> G.add_edge((1,),(2,))