[Top][All Lists]

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

Re: [igraph] Graphml nodal attributes

From: Vincent Labatut
Subject: Re: [igraph] Graphml nodal attributes
Date: Sun, 9 Jan 2011 11:06:31 +0200

hello tamas,

i'm using the R interface, and the attributes are of various types (real, string, integer, boolean).
in the graphml file, igraph seems to preserve the data types...
except the boolean attributes don't appear at all, which i didn't notice before you mentioned types.
i've just converted them to integer before exporting the network, and now it works fine

thanks for your quick and helpful answer,


No, there isn't any limit on the number of attributes you can put there but 
there is a limit on the *types* of those attributes. It depends on what 
interface you are using. In Python, numeric and string attributes are kept and 
every other data type is implicitly converted to a string. R might behave 
differently, but you should be able to store numbers and strings for sure.


On 8 Jan 2011, at 21:35, Vincent Labatut wrote:

> Hello,
> I'm currently trying to export a network from igraph, using the graphml 
> format. my network has many nodal attributes (about 100), however only a few 
> of them appear in the resulting file. so I was wondering if there's a limit 
> in igraph on the number of attributes you can put in a graphml file?
> thanks,
> vincent labatut

reply via email to

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