-
Notifications
You must be signed in to change notification settings - Fork 266
AttributeError: 'igraph.Edge' object has no attribute 'curved' #535
Copy link
Copy link
Closed
Labels
highHigh-priority issue; typically for cases when igraph returns incorrect result for non-corner casesHigh-priority issue; typically for cases when igraph returns incorrect result for non-corner cases
Milestone
Description
Describe the bug
I am getting this error
Traceback (most recent call last):
File "test.py", line 41, in <module>
plot(g, out_name, **visual_style)
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/drawing/__init__.py", line 512, in plot
result.save()
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/drawing/__init__.py", line 292, in save
self.redraw()
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/drawing/__init__.py", line 276, in redraw
plotter(ctx, bbox, palette, *args, **kwds)
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/__init__.py", line 4166, in __plot__
drawer.draw(self, palette, *args, **kwds)
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/drawing/graph.py", line 489, in draw
(x, y), (halign, valign) = edge_drawer.get_label_position(
File "/home/patrick/.local/lib/python3.8/site-packages/igraph/drawing/edge.py", line 159, in get_label_position
if edge.curved:
AttributeError: 'igraph.Edge' object has no attribute 'curved'
To reproduce
https://gist.github.com/goldbattle/bd020ca1039328250628c2a38aea90cd
Version information
Running Ubuntu 20.04 with python 3.8.
Requirement already satisfied: igraph in /home/<username>/.local/lib/python3.8/site-packages (0.9.10)
Requirement already satisfied: texttable>=1.6.2 in /usr/lib/python3/dist-packages (from igraph) (1.6.2)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
highHigh-priority issue; typically for cases when igraph returns incorrect result for non-corner casesHigh-priority issue; typically for cases when igraph returns incorrect result for non-corner cases