Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pajek export and spaces #73

Closed
gaborcsardi opened this issue May 4, 2013 · 1 comment
Closed

Pajek export and spaces #73

gaborcsardi opened this issue May 4, 2013 · 1 comment
Assignees
Labels
high High-priority issue; typically for cases when igraph returns incorrect result for non-corner cases
Milestone

Comments

@gaborcsardi
Copy link
Contributor

Riccrdo Tasso's report:

I have the following pajek file, wich I import in R with the usual g <- read.graph(filename, 'pajek'):

*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.pajek(file, ...) :
At foreign.c:574 : Parse error in Pajek file, line 3 (syntax error), Parse error


Imported from Launchpad using lp2gh.

@gaborcsardi
Copy link
Contributor Author

(by ntamas)
FIxed in #2705 in trunk.

@ghost ghost assigned ntamas May 7, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high High-priority issue; typically for cases when igraph returns incorrect result for non-corner cases
Projects
None yet
Development

No branches or pull requests

2 participants