-
Notifications
You must be signed in to change notification settings - Fork 1
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
networkDynamic for panel of larger networks #9
Comments
@chad-klumb given your recent work on |
I would be surprised if tergmLite really required storing a network list (in typical use cases). Looping over (a large number of) inputs and growing the output at each iteration can be slow as growing often means copying (in R). It is sometimes possible to rewrite the code in such a way that repeated copying is avoided. tergm applies changes to the networkDynamic using this function: |
@ThomasKraft are you using |
I am using From the link @chad-klumb sent, I see now why the |
In the current form, the function
networkDynamic()
is prohibitively slow for converting a list of panel networks of moderate to large size to a dynamicNetwork object (for example, a list of 2 networks with ~8000 nodes and 16k edges is taking on the order of hours). As far as I can tell, this issue stems from the implementation of a for-loop through all edges of the network here:networkDynamic/R/utilities.R
Line 628 in 66e66b9
Based on the comments in the code, I am wondering if
tergm
or anything else already has a different way of taking on this task that is more efficient. I'm having trouble figuring out where exactlytergm
does this, but I think it must do something similar when simulating. Perhaps an operation performed on a stack of sparse sociomatrices would be applicable here?The text was updated successfully, but these errors were encountered: