[graph-tool] Adding an edge by vertices indices?
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the graph-tool