Adding an edge by vertices indices?
Is it possible to add an edge between a source and a target using their indices?
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 <tiago@skewed.de>
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 <javascript:>>
On 03/21/2014 03:00 PM, Hang Mang wrote:
Sorry for the annoyance, but from the documentation I understood that I have to pass vertices objects than integers. Sorry again.
That is fine. Looking again, the documentation is not so clear on this. Best, Tiago -- Tiago de Paula Peixoto <tiago@skewed.de>
participants (2)
-
Hang Mang -
Tiago de Paula Peixoto