-
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
Vertex attribute terms fail at extracting it #27
Comments
Not quite. The problem is that extracting subgraphs is extremely slow, so For example, the following code works: library(ergm.multi)
data(florentine, package = "ergm")
plot(flobusiness)
plot(flomarriage)
set.vertex.attribute(flobusiness, attrname = "x", value = 1:16)
set.vertex.attribute(flomarriage, attrname = "x", value = 1:16 + 16)
flo <- Layer(business = flobusiness, marriage = flomarriage)
flo
# Doesn't work
summary(
flo ~ L(~ edges + nodecov("x"), ~ business) +
L(~ edges + nodecov("x"), ~ marriage)
) I should probably do some subset of the following:
|
…ects, which propagates the change to the subnetwork cache. references #27
Oh, OK. What makes the subgraph extraction a bottleneck? |
|
…sulting data structure's vertex and network attributes should be treated as read-only. references #27
This is a stopgap. |
This is a exegesis of this question on SO:
Brief debugging suggests that the term initialization function receives the network object stripped of all the attributes, hence
x
above is not found.The text was updated successfully, but these errors were encountered: