igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] RuntimeWarning when reading GraphML


From: Chris Wj
Subject: Re: [igraph] RuntimeWarning when reading GraphML
Date: Fri, 6 Feb 2009 12:26:52 -0500

<data key="id">n3</data>
-> Is the data line for id common? Do you see it used often without the 'id' attribute in the 'node' tag?

As it stands now, will the 'id' attribute of the 'node' (<node id="n3">) tag always take priority over the 'data' tag?

-Chris

On Fri, Feb 6, 2009 at 11:14 AM, Gábor Csárdi <address@hidden> wrote:
I don't know. I am not sure what to do with 'id' attributes. Basically
there are two questions here:

1) Whether to read the <node id="n3"> type of ids from the graph, or
not. It they are not read, then we might lose some information. If
they are read, that could lead to confusion.
2) Whether to use the "id" (igraph) vertex attribute as <node id="n3">
type of ids, when we write out a GraphML file. Perhaps not.

What we could do is to read the <node id="n3"> type of ids into an
attribute called "GraphML:id" and use "GraphML:id" for the same
purpose when we write GraphML files.
(Or maybe some similar name, without a ":".)

G.

On Fri, Feb 6, 2009 at 2:41 PM, Chris Wj <address@hidden> wrote:
> I assigned graph, vertex, and edge attributes to a graph and saved it to
> GraphML. When I read it in again, I get this message:
>
> /usr/lib/python2.5/site-packages/python_igraph-0.6-py2.5-linux-x86_64.egg/igraph/__init__.py:1106:
> RuntimeWarning: Could not add vertex ids, there is already an 'id' vertex
> attribute at foreign-graphml.c:370
>
> The GraphML file gets the 'id' data element for each node:
>
> <node id="n3">
>   <data key="eigenvector_centrality">0.135955</data>
>   <data key="id">n3</data>
>   <data key="degree">2</data>
>   <data key="betweenness_centrality">0</data>
> </node>
>
> Why is it added as a data element?
>
> -Chris
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>
>



--
Gabor Csardi <address@hidden>     UNIL DGM


_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help


reply via email to

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