Pajek export and spaces
Bug #602587 reported by
Gábor Csárdi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
igraph |
Fix Released
|
High
|
Tamás Nepusz |
Bug Description
Riccrdo Tasso's report:
I have the following pajek file, wich I import in R with the usual g <- read.graph(
*vertices 3
1 98 "a"
2 11 "b"
3 38 "c d"
*arcs
1 2 3
2 1 1
3 1 8
Each node has a numeric attribute and a string attribute.
When I serialize my network with graph.write(g, filename, 'pajek'), I obtain a strange text file:
*Vertices 3
1 "98" a
2 "11" b
3 "38" c d
*Arcs
1 2 3
2 1 1
3 1 8
The problem is that without quotes strings with spaces give a parse error reading back the last pajek written:
Error in read.graph.
At foreign.c:574 : Parse error in Pajek file, line 3 (syntax error), Parse error
Changed in igraph: | |
assignee: | Gábor Csárdi (gabor.csardi) → Tamás Nepusz (ntamas) |
status: | Confirmed → In Progress |
milestone: | none → 0.6 |
Changed in igraph: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
FIxed in #2705 in trunk.