Hello,
 
> I am trying to add edges to a graph
> (through IDs), however this does not seem to work. I know how to add
> them by using the vertex number, however being able to add them by
> their ID would really make things much easier for me.
In igraph, the ID of a vertex is its “number”; what you are using is not a 
vertex ID but a vertex _name_. As a consequence, the names have to be assigned 
to the “name” vertex attribute and it will work nicely. Also note that you can 
assign all the names at once, there is no need to do them in a for loop:

A.vs[“name”] = nodes_list

T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to