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
Describe the bug VertexCover.__plot__mark_groups specifies in the doc that it accepts a "dict mapping cluster indices or tuples of vertex indices to color names". However, giving such a dict results in an AttributeError:
AttributeError: 'dict' object has no attribute 'iteritems'
This is because mark_groups is parsed using igraph.clustering._handle_mark_groups_arg_for_clustering, which uses iteritems that was removed in Python3. Using items instead fixes the issues. I'm happy to provide a PR if needed.
Describe the bug
VertexCover.__plot__
mark_groups
specifies in the doc that it accepts a "dict mapping cluster indices or tuples of vertex indices to color names". However, giving such a dict results in anAttributeError
:AttributeError: 'dict' object has no attribute 'iteritems'
This is because
mark_groups
is parsed usingigraph.clustering._handle_mark_groups_arg_for_clustering
, which usesiteritems
that was removed in Python3. Usingitems
instead fixes the issues. I'm happy to provide a PR if needed.To reproduce
Note that there is a workaround:
Version information
0.11.3, obtained from pypi using pip. (but 0.11.6 should also be subject to the bug as the related code is the same)
The text was updated successfully, but these errors were encountered: