[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] node data not being recognized
From: |
Gabor Csardi |
Subject: |
Re: [igraph] node data not being recognized |
Date: |
Sat, 2 Feb 2008 11:06:42 +0100 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
Matthew,
I've just checked http://graphml.graphdrawing.org/specification.html,
you cannot have <key> inside of <graph>. Ie. your file should be something
like:
<?xml version="1.0" encoding="UTF-8"?>
<!-- An excerpt of an egocentric social network -->
<graphml xmlns="http://graphml.graphdrawing.org/xmlns">
<!-- data schema -->
<key id="name" for="node" attr.name="name" attr.type="string"/>
<key id="gender" for="node" attr.name="gender" attr.type="string"/>
<graph edgedefault="undirected">
<!-- nodes -->
<node id="1">
<data key="name">Jeff</data>
<data key="gender">M</data>
</node>
<node id="2">
<data key="name">Ed</data>
<data key="gender">M</data>
</node>
</graph>
</graphml>
Gabor
Ps. it's ok if you don't join the list, but please consider that
i need to acknowledge your emails "by hand" and this might cause
delays, plus you might miss some of the answers.
On Fri, Feb 01, 2008 at 06:49:53PM -0600, Matthew Russell wrote:
> Hello,
>
> I am trying to use igraph to convert a graphml file to svg, and
> unfortunately, I am getting the following warning when using the
> latest build:
>
> Warning: unknown attribute key in GraphML file, ignoring attribute in
> file igraph/foreign-graphml.c, line 618
>
> This warning results in node data not being recognized properly for
> any node in the file. Am I perhaps misunderstanding the current
> limitations of igraph at this point, or should it be detecting my node
> data and outputting it in my svg graph?
>
> Here's a snippet of my file to illustrate:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!-- An excerpt of an egocentric social network -->
> <graphml xmlns="http://graphml.graphdrawing.org/xmlns">
> <graph edgedefault="undirected">
>
> <!-- data schema -->
> <key id="name" for="node" attr.name="name" attr.type="string"/>
> <key id="gender" for="node" attr.name="gender" attr.type="string"/>
>
> <!-- nodes -->
> <node id="1">
> <data key="name">Jeff</data>
> <data key="gender">M</data>
> </node>
> <node id="2">
> <data key="name">Ed</data>
> <data key="gender">M</data>
> </node>
>
>
> Thanks for any help
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Csardi Gabor <address@hidden> UNIL DGM