read.graph crashes on gml files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Incomplete
|
Undecided
|
Unassigned |
Bug Description
I've tried this on gml files from a variety of sources.
R version 2.15.1 MacOSX
gdir <- dir('graphs')
> g <- read.graph(
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: .Call("
2: read.graph.
3: read.graph(
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
=======
Also crashes in centos:
> g <- read.graph(
*** caught segfault ***
address (nil), cause 'memory not mapped'
Traceback:
1: .Call("
2: read.graph.
3: read.graph(
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
We will need a little more details, e.g. the exact igraph version, and also a file that reproduces this, because it works fine for me:
g <- graph.ring(10) "/tmp/g. gml", format="gml")
write.graph(g, "/tmp/g.gml", format="gml")
g2 <- read.graph(
(Apart form some warnings about attributes.)