tNodeEmbed
tNodeEmbed copied to clipboard
raise Error in graph_untils.py at line 98
I have an solution. I am not sure that I am right. delete 4 spaces before line 87 in the same py file.
Notice that line 85-87 checks that all nodes have the same attributes. Deleting these 4 spaces deletes this check. If you are comfortable with this - it is possible.
Line 98 creates the graph from the DataFrame with columns 'from', 'to' and attributes. Look at your DataFrame and check if it contains as you expect.
Furthermore, check that you're using the right networkx version (>=2.1)
I find that the error occurs using the netwokx 2.4,but it would be good when the networkx version is exactly 2.1
I have the same issue with this step. The simplest solution is @Lamsaan said: First downgrade the networkx version to 2.1, then everything will be fine.
(The code works as: pip install 'networkx==2.1' --force-reinstall
)
It sounds like the same issue as https://github.com/urielsinger/tNodeEmbed/issues/13#issue-1556241852
If so, the answer is not to use an outdated networkx. It is fixed in the pull request mentioned there.