igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] GML file reader limitations


From: Gábor Csárdi
Subject: Re: [igraph] GML file reader limitations
Date: Wed, 19 Aug 2009 23:29:35 +0200

Hi,

graph attributes work fine for the GraphML format, at least I have

> g <- graph.ring(10)
> g$name <- "Ring"
> write.graph(g, file="/tmp/test.graphml", format="graphml")
> g2 <- read.graph("/tmp/test.graphml", format="graphml")
> g2$name
[1] "Ring"

I don't know how hard it would be to add graph attributes to the GML
reader/writer, maybe not hard. Anyway, you can follow the issue here:
https://bugs.launchpad.net/igraph/+bug/416137
and you might be interested in
https://bugs.launchpad.net/igraph/+bug/353636
as well.

Best,
Gabor

On Wed, Aug 19, 2009 at 8:13 PM, Thomas Gorochowski<address@hidden> wrote:
> Hi there,
>
> I have been attempting to use the C attribute handler within my project and
> require that some graph level attributes (set using SETGAN) can be saved and
> loaded from file. I was hoping to use either the GML or GraphML file
> formats, and at first glance it appeared these support my needs. However,
> after trying to load a graph containing graph level attributes I get the
> error that the attribute cannot be found:
>
> Error at cattributes.c:967 :Unknown attribute, Invalid value.
>
> The documentation also states that only 'Version' and 'graph' top level
> attributes are loaded for GML graphs but that I should contact the
> developers if this is found to be a major limitation. How would I go about
> adding support for arbitrary top level attributes as these are the only way
> I can properly store settings about the graph in general that can then be
> used by my program.
>
> Many thanks for your help,
>
> Tom
> --
> T.E. Gorochowski
> University of Bristol, Centre for Complexity Sciences (BCCS)
> http://www.chofski.co.uk, address@hidden
>
>
>
> _______________________________________________
> igraph-help mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/igraph-help
>



-- 
Gabor Csardi <address@hidden>     UNIL DGM




reply via email to

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