[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] RuntimeWarning when reading GraphML
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] RuntimeWarning when reading GraphML |
Date: |
Fri, 6 Feb 2009 17:14:24 +0100 |
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] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML,
Gábor Csárdi <=
- Re: [igraph] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Tamas Nepusz, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Gábor Csárdi, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Gábor Csárdi, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Gábor Csárdi, 2009/02/06
- Re: [igraph] RuntimeWarning when reading GraphML, Chris Wj, 2009/02/06