igraph-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] GraphML RuntimeWarning


From: Gianluca Della Vedova
Subject: Re: [igraph] GraphML RuntimeWarning
Date: Tue, 09 Sep 2014 06:32:50 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]