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

Strange slow down when exporting to pajek under R #427

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

Strange slow down when exporting to pajek under R #427

gaborcsardi opened this issue May 4, 2013 · 1 comment

Comments

@gaborcsardi
Copy link
Contributor

I experience fairly big slow down when 'id' field of vertices is defined and I try to export in pajek format, here is an example.

g=erdos.renyi.game(200000,0.000001); V(g)$id=0:(vcount(g)-1)
system.time( write.graph(g,file="rand.net.test",format="pajek") )
user system elapsed
260.136 35.470 295.812
g=erdos.renyi.game(200000,0.000001);
system.time( write.graph(g,file="rand.net.test",format="pajek") )
user system elapsed
0.008 0.004 0.014

The exported file is around 1MB. This time does not scale linearly e.g.:

g=erdos.renyi.game(10000,0.000001); V(g)$id=0:(vcount(g)-1)
system.time( write.graph(g,file="rand.net.test",format="pajek") )
user system elapsed
0.560 0.000 0.566
g=erdos.renyi.game(100000,0.000001); V(g)$id=0:(vcount(g)-1)
system.time( write.graph(g,file="rand.net.test",format="pajek") )
user system elapsed
62.984 3.872 66.899

Meaning that exporting 1 million nodes can be painful...


Imported from Launchpad using lp2gh.

@gaborcsardi
Copy link
Contributor Author

Was a duplicate of #574, so it was also fixed by e7e9f0c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant