On 04/09/2014 14:57, Tamás Nepusz wrote:
>> IMHO, as long as the two ids are the same, there is no need for a
>> warning.
> This is hard to ensure when you remove vertices from the graph: as
> soon as you delete a vertex from your graph, the two IDs will be out
> of sync because igraph will simply use "n0", "n1", "n2" and so on in
> the GraphML file that is written to the disk, while it will keep the
> value of the "id" vertex attribute.
> 

Probably I am too fixated with my use case, but I can't see any problem
here.

I agree that it's not something that you can keep in sync, but it's not
really interesting to me. I use GraphML to load a graph that has to be
analyzed, and I need the n0, n1, .. labels only to construct some
unit/regression tests on my program, where I use id to identify each vertex.

My suggestion to remove the warning when the two ids are the same stems
from the fact that you are reading from two *agreeing* sources the same
values. In that case the warning means only that you are reading two
sources. When the values are different, the warning means that you are
reading *different values* from two sources: that's more worthwhile of a
warning IMHO.

But I can surely live with the warning. It has never really bothered me
anyway.

Thanks for your great work and your attention.
Best,

-- 
Gianluca Della Vedova
http://gianluca.dellavedova.org

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

Reply via email to