Sorry for the annoyance, but from the documentation I understood that I have to pass vertices objects than integers. Sorry again.

On Friday, March 21, 2014 12:25:04 PM UTC+1, Tiago Peixoto wrote:
On 03/21/2014 12:07 PM, Hang Mang wrote:
> Is it possible to add an edge between a source and a target using
> their indices?

It would be nice if you would look at the documentation before posting
to the list.

You should just do g.add_edge(i, j), where i and j are integers.

Best,
Tiago

--
Tiago de Paula Peixoto <ti...@skewed.de>