[graph-tool] Adding an edge by vertices indices?

Hang Mang gucko.gucko at googlemail.com
Fri Mar 21 15:00:52 CET 2014


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... at skewed.de <javascript:>> 
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20140321/54b62799/attachment.htm>


More information about the graph-tool mailing list