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

Tiago de Paula Peixoto tiago at skewed.de
Fri Mar 21 12:25:04 CET 2014

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.


Tiago de Paula Peixoto <tiago at skewed.de>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 901 bytes
Desc: OpenPGP digital signature
URL: <https://lists.skewed.de/pipermail/graph-tool/attachments/20140321/0f866a64/attachment.asc>

More information about the graph-tool mailing list