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
This results in error: AttributeError: 'DummyVertex' object has no attribute 'data'
My package versions are:
networkx=2.6.2
netgraph=4.0.4
grandalf=0.7
Possible fix:
_node_layout.py:588
# extract node positionsnode_positions=dict()
forvingraph.C[0].sV:
node_positions[v.data] =v.view.xy# for layer in layout.layers:# for vertex in layer:# node_positions[vertex.data] = vertex.view.xy
The text was updated successfully, but these errors were encountered:
Hi, thanks for raising the issue with a brilliant MWE. I had never seen a DummyVertex object before today. From the grandalf documentation:
The DummyVertex class is used by the sugiyama layout to represent long edges, i.e. edges that span over several ranks.
For these edges, a DummyVertex is inserted in every inner layer.
I adopted a slightly different solution but the issue should be solved in the latest version on github, and I will push a new version to PyPI presently.
Reproducing Example:
This results in error:
AttributeError: 'DummyVertex' object has no attribute 'data'
My package versions are:
Possible fix:
_node_layout.py:588
The text was updated successfully, but these errors were encountered: