# Problems with python-igraph on multi-edge graphs.

**URL:** <https://igraph.discourse.group/t/problems-with-python-igraph-on-multi-edge-graphs/1474>\
**Category:** Usage\
**Tags:** Python\
**Created:** [15 February 2023 14:16 UTC](https://igraph.discourse.group/t/problems-with-python-igraph-on-multi-edge-graphs/1474 "2023-02-15T14:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JanRhoKa](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/janrhoka/32/898_2.png) [@JanRhoKa](https://igraph.discourse.group/u/JanRhoKa)\
**Post date:** [15 February 2023 14:16 UTC](https://igraph.discourse.group/t/problems-with-python-igraph-on-multi-edge-graphs/1474/1 "2023-02-15T14:16:12Z")

</div>

Plotting a multi edge graph using Pycairo leads to a TypeError. More specific the problem I am having is to plot multi-edge graphs in general. The error is always the same: “VisualEdgeBuilder” object is not subscriptable.

 ![Screenshot 2023-02-15 at 15.07.56](https://global.discourse-cdn.com/free1/uploads/igraph/original/1X/b0bc7e5cb113638fa5011aad7076eeb841c4a970.png)

**Minimum working example**

```auto
import igraph as ig

g = ig.Graph()
g.add_vertices(3)
g.add_edges([(0,1), (1,0), (1,2)])

ig.plot(g)

```

If I set the `autocurve` attribute to False the plot is displayed and no error occurs.

**Version information**

```auto
python-igraph=0.9.9
pycairo=1.23.0

```

Is there some feature I have to install or settings which I have not set ? As I do not understand why the plotting is not working.

---

<div class="post-metadata">

**Author:** ![szhorvat](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/szhorvat/32/3_2.png) [@szhorvat](https://igraph.discourse.group/u/szhorvat)\
**Post date:** [15 February 2023 15:24 UTC](https://igraph.discourse.group/t/problems-with-python-igraph-on-multi-edge-graphs/1474/2 "2023-02-15T15:24:25Z")

</div>

> [@JanRhoKa](#):
>
> ```auto
> python-igraph=0.9.9
> 
> ```

You are using an outdated version that is more than a year old. Have you tested if the problem is still present in the latest version?

---

<div class="post-metadata">

**Author:** ![JanRhoKa](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/janrhoka/32/898_2.png) [@JanRhoKa](https://igraph.discourse.group/u/JanRhoKa)\
**Post date:** [15 February 2023 16:13 UTC](https://igraph.discourse.group/t/problems-with-python-igraph-on-multi-edge-graphs/1474/3 "2023-02-15T16:13:22Z")

</div>

Yes this resolved it. Thank you very much.
